PowerShell
777 subscribers
214 photos
4 videos
1 file
802 links
Task automation and configuration management framework #PowerShell
Download Telegram
Power On HPE Server Using PowerShell
By: Jimmy Liew

You may need to download the HP iLO Cmdlets for Windows PowerShell (x64) from HPE support portal and install it on the server/machine you wish you execute the PowerShell command. COMMAND Below is the PowerShell command to power on/off the server.
Link
Today's cmdlet: Format-Table
Formats the output as a table.

Example's Remarks:
• The `Get-Process` cmdlet gets objects that represent each process on the computer and sends them down the pipeline to `Sort-Object`.
• The objects are sorted in the order of their BasePriority property.

#tutorial
PoshTaskbarItem: module to make simple UIs on the Windows taskbar
By: u/mdgrs-mei

Some months ago, I shared a script here that notifies you of unread Outlook emails by badge notifications on the taskbar. I got some positive comments and decided to make a module for the taskbar handling part so that anyone can quickly make their tools.
Link
Best practice to use function keyword in single purpose script?
By: u/jeffwcpa

When creating a single purpose PS1 script, what is the benefit of using to the function keyword as opposed to simply naming the PS1 script verb-noun without using the function keyword?
Link
👎1
Today's cmdlet: ConvertTo-Json
Converts an object to a JSON-formatted string.

Example's Remarks:
• This example uses the `ConvertTo-Json` cmdlet to convert a System.DateTime object from the `Get-Date` cmdlet to a JSON-formatted string.
• The command uses the `Select-Object` cmdlet to get all (` `) of the properties of the DateTime * object.
• The output shows the JSON string that `ConvertTo-Json` returned.

#tutorial
Set-WallpaperClock 1.3.1
By: Psychosapien

A PS Module that sets your desktop background to show the current time.
Link
Today's cmdlet: Compress-Archive
Creates a compressed archive, or zipped file, from specified files and directories.

Example's Remarks:
• The command updates `Draft.Zip` with newer versions of existing files in the `C:\Reference` directory and its subdirectories.
• And, new files that were added to `C:\Reference` or its subdirectories are included in the updated `Draft.Zip` archive.

#tutorial
A conversation that will !slap you with Jaap
By: The PowerShell Podcast

In this episode, Jaap tells us how he got into speaking at conferences. We talk about examples of how his support has helped people on their own speaking journey. We discuss a few of the recent talks he has given, from abstracting code to bettering your home automation.
Link
Using Graph to assign a group to a PowerShell script in Intune
By: Mattias Benninge

While doing some Intune automation the other day I got stuck on trying to assign a script to a group. Using the graph API documentation sent me on a wild goose chase so just wanted to write a small writeup if someone else ran into the same problem.
Link
September **In-person** Meetup
By: PowerShell Southampton

Three speakers are lined up, sandwiches, tea, and coffee will be served, and 3 raffle prizes to be won at the end (see below)!
Link
Microsoft Graph Explorer Boosted by New Features
By: Tony Redmond

Some recent changes have made the Graph Explorer even more useful. First, PowerShell has joined the set of supported languages for code snippets.
Link
Today's cmdlet: Wait-Process
Waits for the processes to be stopped before accepting more input.

Example's Remarks:
• The `Get-Process` cmdlet gets the process ID of the Notepad process and stores it in the `$nid` variable.
• `Stop-Process` stops the process with the ID stored in `$nid`.
• `Wait-Process` waits until the Notepad process is stopped.

#tutorial
👍1
PowerShell Prompt: Functionality
By: Jeff Hill

Some handy tips to add extra functionality to your PowerShell session
Link
👍2
Events with PowerShell Automation
By: smallfoxx

If you're looking for a PowerShell script to help you plan out or schedule your event, this is not the post you're looking for; maybe another time.
Link
👍2
Today's cmdlet: Test-Connection
Sends ICMP echo request packets, or pings, to one or more computers.

Example's Remarks:
• `Test-Connection` uses the TargetName parameter to specify Server01.
• The Count parameter specifies three pings are sent to the Server01 computer with a Delay of 2-second intervals.

#tutorial
Learn How PowerShell CmdletBinding Enhances Functions
By: Samuel Ogunleke

Have you ever wanted to create a PowerShell cmdlet but didn’t know C# or another Microsoft .NET Framework language? Why keep ‘wanting’ when you have PowerShell CmdletBinding at your fingertips?
Link