PowerShell – Telegram
PowerShell
821 subscribers
214 photos
4 videos
1 file
802 links
Task automation and configuration management framework #PowerShell
Download Telegram
Today's cmdlet: Stop-Process
Stops one or more running processes.

Example's Remarks:
• This series of commands starts and stops the `Calc` process, and then detects processes that have stopped.

#tutorial
Connect to Exchange Online PowerShell with an Azure Managed Identity
By: Brad Wyatt

Recently the Exchange Online Module v2 came out with support for connecting to Exchange Online via a managed identity. The module has several parameters:
Link
Create an Azure Arc Service Principal with longer expiration date using PowerShell
By: Thomas Maurer

When you are onboarding at scale of Azure Arc enabled servers or Azure Arc enabled Kubernetes clusters, you want to use service principals for automated authentication during the onboarding process for Azure Arc resources. Microsoft provides you with an option in the Azure portal to create that service principal. When you use this, you can set .
Link
PSMDE 0.5.7
By: Jan-Henrik Damaschke

Provides a PowerShell functions to interact with Microsoft Defender for Endpoint (MDE)
Link
Get-MsIdUnredeemedInvitedUser
By: Jef Kazimer

Are you monitoring your Azure AD tenant for external users the business invites but are not actually redeemed? Here is a quick example PowerShell cmdlet using MS Graph API to enumerate them by creation date and either delete or disable them as you wish
Link
Today's cmdlet: Get-Process
Gets the processes that are running on the local computer.

Example's Remarks:
• This command gets all available data about the Winword and Explorer processes on the computer.
• It uses the Name parameter to specify the processes, but it omits the optional parameter name.
• The pipeline operator (`|`) passes the data to the `Format-List` cmdlet, which displays all available properties (`*`) of the Winword and Explorer process objects.

#tutorial
Exploring AutomatedLab and DSC with Raimund Andrée
By: The Powershell Podcast

In this episode, we revisit AutomatedLab with the other primary maintainer, Raimund Andrée. Raimund teaches us about DSC and shares details of the DSCWorkshop project, which is a great way to go about learning more about DSC in a hands-on manner. We also learned about Cattle vs. Pets and how that applies to your servers. You can hear all of this, plus more in this companion episode to our first AutomatedLab episode.
Link
Archive Module 2.0 Preview 2
By: Sydney Smith

We are excited to announce that the second preview of a rewrite of Microsoft.PowerShell.Archive, the module that lets you create and extract archives, is now available on the PowerShell Gallery.
Link
Migrate Your Script from AzureAD or MSOnline to Graph API
By: Faris Malaeb

No one can deny the superior help of AzureAD and MSOL PowerShell modules and how these two made cloud management easy and simple. But the end for these two modules is nearby, and the direction is the Graph API. So why not start now and learn what you need to know to migrate your PowerShell [.]
Link
👍2
Today's cmdlet: ConvertFrom-Json
Converts a JSON-formatted string to a custom object or a hash table.

Example's Remarks:
• The JSON string contains an array with a single element.
• Without the switch, converting the JSON to a PSObject and then converting it back with the `ConvertTo-Json` command results in a single integer.

#tutorial
The many flavours of WMI management
By: Francisco Nabas

Working with the different ways of managing WMI.
Link
PowerShell tips and tricks
By: Harm Veenstra

Over the years I learned a lot of PowerShell tricks but also stopped using a few because they are out-dated or not that smart to use them anymore performance wise. In this blogpost I will share a few of them 🙂 (These are just a few, will write a new blogpost with others in the future)
Link
👍2
Challenge to shorten this code as much as possible using wildcard/regex/code golfing techniques [PLATINUM AWARD CHALLENGE]
By: u/jakobyscream

Congrats and thank you [**me_again**](https://www.reddit.com/user/me_again/) **I**
Link
PowerShell Script to Simplify Send-MgUserMail
By: Faris Malaeb

Okay, Microsoft Graph API is cool, but sometimes it's boring to deal with all these hashtables and arrays. The Send-MgUserMail is a great graph cmdlet to send Emails using the Graph API endpoint, this post is fully explained in the Send-MgUserMail BodyParameter Explained. But going through these hashtables is a challenge, and its more complicated.
Link
Shy Bairns Get Nowt with Brett Miller
By: The Powershell Podcast

In this episode, we discuss Brett's unusual path to IT. He discusses how his contributions to the community have changed over the years. We discuss the similarities in problem-solving between daily tasks and coding. Jordan learns that listing yak shaving in Twitter bios is not a secret language between the PowerShell community but is a common expression. Last, we discussed his trip to South Hampton to attend a PowerShell user group, where he was able to catch up with several people from the PowerShell community.
Link
Today's cmdlet: Stop-Computer
Stops (shuts down) local and remote computers.

Example's Remarks:
• `Get-Content` uses the Path parameter to get a file in the current directory with the list of domain computers.
• The objects are stored in the `$s` variable.

#tutorial
CISO Wants To Block PowerShell But Open to Ideas
By: u/CuriousJazz7th

Yes. you read it right. Just for starters, I have read this:
Link
How to Report High-Priority Azure AD App Permissions That Hackers Might Exploit
By: Tony Redmond

Microsoft 365 tenants usually include many Azure AD apps. These apps hold permissions, including permissions that hackers like to exploit. This article explains how to use PowerShell to detect apps with high-priority permissions and report them to administrators for review.
Link