PowerShell Best Practices for Expert Level
By: u/bwljohannes
A great Reddit thread, worth reading through
Link
By: u/bwljohannes
A great Reddit thread, worth reading through
Link
reddit
PowerShell Best Practices for Expert Level
So imo PowerShell is not for creating the most efficient tools, but for providing an easy2use solution to automate stuff. That’s why I love this...
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
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
Faris Malaeb
Migrate Your Script from AzureAD or MSOnline to Graph API
This tutorial walks you through the steps required to update your PowerShell noscript from using AzureAD and MSOL to using Graph API SDK Module.
👍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
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
By: Francisco Nabas
Working with the different ways of managing WMI.
Link
PowerShell Community
The many flavours of WMI management
Working with the different ways of managing WMI.
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
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
PowerShell is fun :)
PowerShell is fun :) PowerShell tips and tricks
Over the years I learned a lot of PowerShell tricks but also stopped using a few because they are outdated or not that smart to use them any more performance-wise. In this blog post I will share a …
👍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
By: u/jakobyscream
Congrats and thank you [**me_again**](https://www.reddit.com/user/me_again/) **I**
Link
Reddit
Check out me_again’s Reddit profile
Explore me_again’s posts and comments on Reddit
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
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
Faris Malaeb
PowerShell Script to Simplify Send-MgUserMail
PowerShell Script that simplify the send email Graph API mail send to make it similar to Send-MailMessage, also you can get the JSON format
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
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
Podbean
Shy Bairns Get Nowt with Brett Miller | 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…
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
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
This is why you don’t store credentials in your noscripts: Uber Hack
By: u/Trakeen
Great discussion on a great topic in this thread.
Link
By: u/Trakeen
Great discussion on a great topic in this thread.
Link
reddit
This is why you don't store credentials in your noscripts: Uber Hack
[https://arstechnica.com/information-technology/2022/09/uber-was-hacked-to-its-core-purportedly-by-an-18-year-old-here-are-the-basics/?comments=1](...
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
By: u/CuriousJazz7th
Yes. you read it right. Just for starters, I have read this:
Link
reddit
CISO Wants To Block PowerShell But Open to Ideas
Yes… you read it right. Just for starters, I have read this:...
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
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
Practical 365
How to Report High-Priority Azure AD App Permissions That Hackers Might Exploit
Microsoft 365 tenants usually include many Azure AD apps. These apps hold permissions, including permissions that hackers like to exploit.
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
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
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
Petri
Understanding PowerShell Objects | Petri IT Knowledgebase
I have taught PowerShell objects to many people over the last 10 years and it is not as difficult as people make it out to be. In this article, I will take you through the basics of working with objects. Plus, real-world examples of how to simplify complex…
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
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
reddit
what are you guys using for emails?
Hey everybody, Ive been using send-mailmessage for years and just realized Microsoft docs don't recommend it anymore. What are your guys thoughts...
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
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
Reddit
From the PowerShell community on Reddit: Script w/ GUI to Prevent Computer Inactivity
Explore this post and more from the PowerShell community
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
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
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
YouTube
Enable Azure AD Groups for GroupWriteback v2 using MS Graph Powershell
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
With the recent preview of Group Writeback V2, many organizations will want to selectively set…
With the recent preview of Group Writeback V2, many organizations will want to selectively set…
PowerShell Community Textbook Update: To be released this weekend!
By: u/PowerShellMichael
Gday Everyone,
Link
By: u/PowerShellMichael
Gday Everyone,
Link
reddit
PowerShell Community Textbook Update: To be released this weekend!
Gday Everyone, Just a quick message to let everyone know that "Modern Automation with PowerShell" will be released on leanpub this weekend. For...
PowerShell Registry Monitor
By: Francisco Nabas
How to set up a simple registry key monitor with PowerShell
Link
By: Francisco Nabas
How to set up a simple registry key monitor with PowerShell
Link
Microsoft News
PowerShell Registry Monitor
How to set up a simple registry key monitor with PowerShell
Azure Automation Hybrid Worker Groups: Getting Started Guide
By: Jeff Brown
In previous posts, you learned how to create your first Azure Automation PowerShell runbook and configure authentication to Azure resources. With these tools available, your next step is to expand your runbook's reach outside of Azure to on-premises resources. Azure Automation makes this possible with Hybrid Worker Groups. In this guide, you will learn how
Link
By: Jeff Brown
In previous posts, you learned how to create your first Azure Automation PowerShell runbook and configure authentication to Azure resources. With these tools available, your next step is to expand your runbook's reach outside of Azure to on-premises resources. Azure Automation makes this possible with Hybrid Worker Groups. In this guide, you will learn how
Link
Jeff Brown Tech
Azure Automation Hybrid Worker Groups: Getting Started Guide | Jeff Brown Tech
Azure Automation can also execute runbooks in your on-premises systems using hybrid worker groups. Learn how to configure in this tutorial!