PowerShell – Telegram
PowerShell
820 subscribers
214 photos
4 videos
1 file
802 links
Task automation and configuration management framework #PowerShell
Download Telegram
How to Execute PowerShell Azure Functions with HTTP Triggers
By: Adam Bertram

Learn how to execute and test Azure Functions in PowerShell via HTTP using both the Azure Portal and PowerShell's Invoke-RestMethod cmdlet.
Link
Today's tip ‣ Lexical structure: Multiplier suffixes

”For convenience, integer and real literals can contain a numeric-multiplier, which indicates one of a set of commonly used powers of 10. numeric-multiplier can be written in any combination of upper- or lowercase letters.”
kb = kilobyte (1024)
mb = megabyte (1024 x 1024)
gb = gigabyte (1024 x 1024 x 1024)
tb = terabyte (1024 x 1024 x 1024 x 1024)
pb = petabyte (1024 x 1024 x 1024 x 1024 x 1024)

#tip
Favorite PowerShell modules that I use
By: Harm Veenstra

During the course of time, you add modules to your system, some are crucial for the things you work on and some were used only once 😉 In this blog post, I will show you my current list of modules and tell you why I use(d) them...
Link
Microsoft.PowerPlatform.DevOps v2.0.134
By: Dylan Haskins and Eugene Van Staden

A Toolset for Implementing and Adopting a full ALM strategy for the Microsoft PowerPlatform.
Link
Create a Windows 11 Multi-session golden image for Azure Virtual Desktop using Marketplace Image
By: Aresh Sarakari

Want to create a Windows 11 golden image for Azure Virtual Desktop (AVD) using a marketplace image using PowerShell? Check out this post by Aresh Sarakari on how you can do just that.
Link
Today's cmdlet ‣ Get-Alias
Gets the aliases for the current session.

Example's Remarks:
• This command gets all aliases that begin with gp or sp, except for aliases that end with ps.

#tutorial
Today's cmdlet ‣ Get-PSProvider
Gets information about the specified PowerShell provider.

Example's Remarks:
• This command displays a list of all available PowerShell providers.

#tutorial
One of the coolest new enhancements in tab completion with PowerShell 7.3.0
By: Patrick Meinecke

is splat hashtable keys. HUGE props to MartinGC94 for this one
Link
Today's cmdlet ‣ Remove-ItemProperty
Deletes the property and its value from an item.

Example's Remarks:
• The first command uses the `Set-Location` cmdlet to change the current location to the HKEY_CURRENT_USER drive (`HKCU:`) and the `Software\MyCompany\MyApp` subkey.

#tutorial
Create Your Own ChatGPT in 5 Minutes with PowerShell!
By: Caroline Chiari

ChatGPT is all the rage right now, but I've had my own ChatGPT in PowerShell for quite a while now, even before ChatGPT existed. In this video, I will show you how you can get access to your own ChatGPT from the PowerShell command line in less than 5 minutes, WITHOUT having to write a single line of code!!!
Link
Adding a Help Parameter to a Function
By: Tommy Maynard

I started writing a PowerShell function to replicate the work of an old executable called ICSWEEP. ICSWEEP 'is a command-line utility to clear the Temporary Internet Files Cache and/or the TEMP files folder of ALL user profiles that are NOT in use when this command is executed.' ICSWEEP Information.
Link
👍1
Fossilize – Mastodon account backup tool
By: Chrissy LeMaire

This GitHub Action will help you backup Mastodon account items to CSV files
Link
Today's cmdlet ‣ New-WinEvent
Creates a new Windows event for the specified event provider.

Example's Remarks:
• This command uses the `New-WinEvent` cmdlet to create event 45090 for the Microsoft-Windows-PowerShell provider.

#tutorial
Today's tip ‣ Arrays: Common

”A 1-dimensional array has type `type[]`, a 2-dimensional array has type `type[,]`, a 3-dimensional array has type `type[,,]`, and so on, where type is object for an unconstrained type array, or the constrained type for a constrained array.”
$a = [int[]](1,2,3,4) # constrained to int
#tip
Loving the Community with Phil Bossman
By: The Powershell Podcast

In this episode, Phil shares his favorite thing about PowerShell: the community. As a leader of the RTPSUG, Phil encourages Andrew and Jordan to submit for Summit while not committing himself fully. Phil loves the PowerShell community and troubleshooting. He doesn't define Yak Shaving but says other stuff worth listening to.
Link