PowerShell – Telegram
PowerShell
820 subscribers
214 photos
4 videos
1 file
802 links
Task automation and configuration management framework #PowerShell
Download Telegram
Best practice to use function keyword in single purpose noscript?
By: u/jeffwcpa

When creating a single purpose PS1 noscript, what is the benefit of using to the function keyword as opposed to simply naming the PS1 noscript 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 noscript in Intune
By: Mattias Benninge

While doing some Intune automation the other day I got stuck on trying to assign a noscript 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 noscript 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
PowerShell Podcast in 1 day of Lunch with Claudio Silva
By: The Powershell Podcast

In this podcast, Claudio shares his journey as a DBA and the massive role of PowerShell in that journey. He shares advice for DBAs who are just getting started with PowerShell and automation as well as some of the easiest ways to start taking advantage of dbatools. We learned about different methods for learning and how the book Learn dbatools in a Month of Lunches can be a great fit for those trying to get started with dbatools.
Link
👍1
PowerCLI and PowerShell cheat sheet
By: Piotr Tarnawski

Here are commands, every vSphere admin should know: List of available interfaces and physical network cards (vmkernel + vmnic): Adding another interface (vmkernel to vMotion)...
Link
Schedule and Run PowerShell Scripts for Azure VMs using Azure Automation
By: Thomas Maurer

A while ago I wrote a blog post on how you can run a PowerShell or Bash noscript against multiple Azure Virtual Machines (VMs) using Run Command. In this blog post we are going to have a look on how you can schedule and run PowerShell and Bash noscripts against Azure virtual machines (VMs) using .
Link
Easy way to send emails using Microsoft Graph API (Office 365) with PowerShell
By: Przemyslaw Klys

When you're using Office 365 and want to send an email, you have two choices SMTP or Microsoft Graph API, which is a 'new' kid on the block. For some time, I've used Microsoft Graph exclusively to send emails in favor of SMTP as it's much easier to manage and generally works over HTTPS.
Link