PowerShell – Telegram
PowerShell
821 subscribers
214 photos
4 videos
1 file
802 links
Task automation and configuration management framework #PowerShell
Download Telegram
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
Today's cmdlet: Remove-Item
Deletes the specified items.

Example's Remarks:
• It uses the wildcard character (`*`) to specify the contents of the current folder.
• It uses the Include and Exclude parameters to specify the files to delete.

#tutorial
Understanding PowerShell Objects
By: Jeff Hicks

One of the features that both makes PowerShell so easy to use yet sometimes difficult to learn is its focus on objects. I have taught PowerShell objects to many people over the last 10 years and this is not as difficult as people make it out to be.
Link
what are you guys using for emails?
By: u/x180mystery

Hey everybody, Ive been using send-mailmessage for years and just realized Microsoft docs don't recommend it anymore. What are your guys thoughts on this?
Link
Script w/ GUI to Prevent Computer Inactivity
By: u/TheCallOfAsheron

This is a little noscript I use to prevent messenger software from marking me as inactive. It presses Scroll Lock once a minute while running. I added a time window, for example you can set it to only keep you active between 8:00AM - 5:00PM. It runs the job in the background, so it will continue to run until you click Turn Off even if the tool is closed. I created a shortcut to run the tool and pinned it to my taskbar.
Link
Today's cmdlet: Format-Table
Formats the output as a table.

Example's Remarks:
• The `Get-Host` cmdlet gets System.Management.Automation.Internal.Host.InternalHost objects that represent the host.
• The objects are sent down the pipeline to `Format-Table` and displayed in a table.
• The AutoSize parameter adjusts the column widths to minimize truncation.

#tutorial
Enable Azure AD Groups for GroupWriteback v2 using MS Graph Powershell
By: Jef Kazimer

In this stream I had a casual coding walkthrough of the Azure AD group properties for managing per group writeback v2 to on-premises using MS Graph PowerShell
Link