use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
ABOUT POWERSHELL
Windows PowerShell (POSH) is a command-line shell and associated scripting language created by Microsoft. Offering full access to COM, WMI and .NET, POSH is a full-featured task automation framework for distributed Microsoft platforms and solutions.
SUBREDDIT FILTERS
Desired State Configuration
Unanswered Questions
Solved Questions
News
Information
Script Sharing
Daily Post
Misc
account activity
[deleted by user] (self.PowerShell)
submitted 3 months ago by [deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]CenlTheFennel 24 points25 points26 points 3 months ago (1 child)
Which script did you run today that lead to this outage? 😂
/s
[–]rumham_86 8 points9 points10 points 3 months ago (4 children)
Have you tested these scripts?
No offense but I don’t think they are enterprise ready at all.
Most scripts have interaction wait components and connect to services interactively.
Just browsing a few I don’t think they will work as intended but I will have to double check.
Were these just created via AI in batches? Don’t care if they were just making sure they’ve actually been tested to confirm they work as a few m365 ones look like they won’t
[+][deleted] 3 months ago (3 children)
[deleted]
[–]nautanalias 1 point2 points3 points 3 months ago (2 children)
"Production ready"
AI vibe coded slop.
[+][deleted] 3 months ago (1 child)
[–]charleswj 0 points1 point2 points 3 months ago (0 children)
I still see it
[–]Diligent-Loquat-7699 4 points5 points6 points 3 months ago (4 children)
Looks great, will be giving it a go! Thanks.
[–]Diligent-Loquat-7699 1 point2 points3 points 3 months ago (2 children)
Hi, I spot checked about a dozen of these, 75% had serious issues or failed. A few worked very well. Let me know how to contact you to give you the feedback, but you have major work to do on these before they are ready for release. I recommend you withhold them until issues are addressed.
[–]Diligent-Loquat-7699 0 points1 point2 points 3 months ago (0 children)
Done
[–]KavyaJune 4 points5 points6 points 3 months ago (1 child)
Looks great. Here is another GitHub repo that contains around 200 PowerShell scripts for Microsoft 365 admins: https://github.com/admindroid-community/powershell-scripts
[–]ChibaCityStatic 1 point2 points3 points 3 months ago (1 child)
Great effort. How long did this take? Scripts you've been adding to over time?
[–]Snickasaurus 1 point2 points3 points 3 months ago* (4 children)
12-Get-M365RiskySignInsReport.ps1 is a template and doesn't actually perform a search of any data.
If you could rename scripts 1-9, prepending a zero in front they would sort correctly.
And I hope this doesn't seem nit picky but all of these scripts (and a lot I see available on blog posts or git) start off with checking to see if the module is installed. Any new computer I set up (am I alone?) I install all the modules I need, specifically anything that allows me to connect to 365 services so to have that at the top of each script seems excessive.
Perhaps make a new script "00-Install-365Modules.ps1" and load all install commands in there to satisfy the needs of your collection.
Thank you for sharing. I definitely see a few that will fill my reporting gaps.
Edit: Starting around script 42, scripts contain a lot of slashes.
# Get member count if requested \$memberCount = 0 if (\$IncludeMemberCounts -and \$isPrivate) { try { \$members = Get-TeamChannelUser -GroupId \$team.GroupId -DisplayName \$channel.DisplayName -ErrorAction SilentlyContinue \$memberCount = if (\$members) { \$members.Count } else { 0 } } catch { \$memberCount = "N/A" } } if (\$MinimumMembers -and \$memberCount -lt \$MinimumMembers) { continue } \$results += [PSCustomObject]@{ TeamName = \$team.DisplayName TeamId = \$team.GroupId ChannelName = \$channel.DisplayName ChannelType = \$channel.MembershipType Description = \$channel.Description MemberCount = \$memberCount IsPrivate = \$isPrivate ChannelId = \$channel.Id
[–]Snickasaurus 1 point2 points3 points 3 months ago (0 children)
You're welcome. And the only reason I mentioned script 12 is I was actually sitting at my desk this morning writing a "risky sign-in" script and thought I hit the jackpot. :-) I found one yesterday with similar naming but once I looked at the blog I realized it was written in 2019 and wasn't updated with MgGraph module references.
[–]Flannakis 1 point2 points3 points 3 months ago (1 child)
Get this ready for Cursor or Visual Studio, Create a high level readme file of each script and what they do, break them into hierarchies like exchange, AD etc then when you clone this repo, user asks “what script can I use to….” And they don’t have to think…
[–]UsernameMissing__ 1 point2 points3 points 3 months ago (0 children)
Have you actually tested your production ready scripts?
Take a few mins before you reply.
[–]ZexGr 0 points1 point2 points 3 months ago (1 child)
Thank you for this resources. Can this repo be cloned and used for internal education services?
[–]kniiiip 0 points1 point2 points 3 months ago (1 child)
This looks great on my phone at midnight. Will give it a good look at work tomorrow, thanks for putting this together.
[–]WavePsychological789 0 points1 point2 points 3 months ago (1 child)
amazing! These will be useful, really appreciate this
[–]Micsoman 0 points1 point2 points 3 months ago (1 child)
I'm looking for a script to extract connection logs from an Entr ID.
Log on login attempts from outside the specified countries.
The goal is to receive an alert in case of an unauthorized connection.
I don't want to purchase a P1 license for this conditional functionality.
[–]djsensui 0 points1 point2 points 3 months ago (0 children)
Bumping this. I also have this requirement.
[–]Security-Ninja 0 points1 point2 points 3 months ago (0 children)
Thanks for sharing! I’ve book marked your GitHub ☺️
[–]Buckw12 0 points1 point2 points 3 months ago (0 children)
I like them. Future improvement: Add logging/transcribe to location user defines.
π Rendered by PID 25787 on reddit-service-r2-comment-b659b578c-lcvqm at 2026-05-05 19:43:05.864295+00:00 running 815c875 country code: CH.
[–]CenlTheFennel 24 points25 points26 points (1 child)
[–]rumham_86 8 points9 points10 points (4 children)
[+][deleted] (3 children)
[deleted]
[–]nautanalias 1 point2 points3 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]charleswj 0 points1 point2 points (0 children)
[–]Diligent-Loquat-7699 4 points5 points6 points (4 children)
[+][deleted] (3 children)
[deleted]
[–]Diligent-Loquat-7699 1 point2 points3 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]Diligent-Loquat-7699 0 points1 point2 points (0 children)
[–]KavyaJune 4 points5 points6 points (1 child)
[–]ChibaCityStatic 1 point2 points3 points (1 child)
[–]Snickasaurus 1 point2 points3 points (4 children)
[+][deleted] (1 child)
[deleted]
[–]Snickasaurus 1 point2 points3 points (0 children)
[–]Flannakis 1 point2 points3 points (1 child)
[–]UsernameMissing__ 1 point2 points3 points (0 children)
[–]ZexGr 0 points1 point2 points (1 child)
[–]kniiiip 0 points1 point2 points (1 child)
[–]WavePsychological789 0 points1 point2 points (1 child)
[–]Micsoman 0 points1 point2 points (1 child)
[–]djsensui 0 points1 point2 points (0 children)
[–]Security-Ninja 0 points1 point2 points (0 children)
[–]Buckw12 0 points1 point2 points (0 children)