r/PowerShell • u/IntelligentAsk • Apr 26 '19
r/PowerShell • u/MadBoyEvo • Jan 24 '19
Active Directory - How to track down why and where the user account was locked out
r/PowerShell • u/TrendingBot • Aug 30 '19
/r/powershell hit 100k subscribers yesterday
redditmetrics.comr/PowerShell • u/NISMO1968 • Jun 02 '19
News Microsoft doles out PowerShell 7 preview. It works. People like it. We can't find a reason to be sarcastic about it
r/PowerShell • u/martyb22 • Sep 25 '25
What is the coolest thing you've done with PowerShell?
r/PowerShell • u/KavyaJune • Jun 10 '25
Script Sharing PowerShell Scripts for Managing & Auditing Microsoft 365
I’ve put together a collection of 175+ PowerShell scripts focused on managing, reporting, and auditing Microsoft 365 environments. Most of these are written by me and built around real-world needs I’ve come across.
These scripts cover a wide range of tasks, including:
Bulk license assignment/removal
M365 user offboarding
Detecting & removing external email forwarding
Configuring email signatures
Identifying inactive or stale accounts
Monitoring external file sharing in SPO
Tracking deleted files in SharePoint Online
Auditing mailbox activity and email deletions
Reporting on room mailbox usage
Exporting calendar permissions
Checking Teams meeting participation by user
OneDrive usage report
And lots more...
Almost all scripts are scheduler-friendly, so you can easily schedule them into Task Scheduler or Azure Automation for unattended execution.
You can download the scripts from GitHub.
If you have any suggestions and script requirements, feel free to share.
r/PowerShell • u/weebsnore • Oct 09 '19
PSScriptMenuGui - Use a CSV file to make a graphical menu of PowerShell scripts
r/PowerShell • u/BlackV • Apr 02 '20
Information PluralSight Offering 1 month free courses I didn't see this mentioned here so thought it might be useful for people
r/PowerShell • u/derekhans • Oct 15 '26
News New Rule - AI Disclosure
If you are posting a script, tool, or anything else you’ve used AI, LLM or whatever to make, it must be disclosed. This includes anything from complete authorship, formatting, comments, or language/translation assistance.
If your script or content is suspected of being AI written and it is not disclosed in a tag or at the top of the post, it will be removed until investigated.
Community: This is at your request. Report any undisclosed suspected AI “slop” for investigation.
EDIT: I’m going to be clear. We’re not saying you can’t post AI created stuff. We’re saying you have to disclose that you are. If you have a problem with that, you’re not proud of the fact you used an AI tool. You’re deceiving people into thinking you wrote it. Anyone who uses whatever AI wrote deserves to know and take the diligence necessary to review it before using it, same as they would anything else.
r/PowerShell • u/JohnSavill • Jan 26 '22
Information PowerShell Master Class lesson one just passed 300,000 views. Thank you!
Another nice milestone 🎉. Lesson one of the PowerShell Master Class hit 300,000 views! I keep this updated with recent new lessons around version 7, debugging, secrets and more.
https://youtube.com/playlist?list=PLlVtbbG169nFq_hR7FcMYg32xsSAObuq8
https://github.com/johnthebrit/PowerShellMC
No adverts or breaks. It's just there to help people learn. Good luck!
r/PowerShell • u/karanikn • 9d ago
News Powershell collection for IT Admins and not only
Over the last few months, I’ve been working on a number of PowerShell projects and automation scripts. Most of them focus on system administration, Microsoft 365, networking, monitoring, and general IT automation tasks.
I’ve published several of them on my GitHub if anyone would like to take a look:
https://github.com/karanikn?tab=repositories
I’m always looking for ways to automate repetitive work and make day-to-day administration a little easier.
If you have any ideas for improvements, new features, or changes, I’d love to hear them. And if you happen to spot any bugs, issues, or areas that could be improved, I’d really appreciate your feedback when you have the time.
r/PowerShell • u/very_bad_programmer • Jan 06 '22
Script Sharing One line mouse jiggler
Add-Type -assemblyName System.Windows.Forms;$a=@(1..100);while(1){[System.Windows.Forms.Cursor]::Position=New-Object System.Drawing.Point(($a|get-random),($a|get-random));start-sleep -seconds 5}Enjoy!
r/PowerShell • u/MaximRouiller • Mar 04 '20
Announcing PowerShell 7.0 | PowerShell
r/PowerShell • u/akshin1995 • Oct 03 '21
Misc As sysadmin I use many PowerShell scripts on the daily basis. To make them more accessible, organized and easy to execute I created a tool for myself using .NET 5. Decided to share tool with community, may be it might be useful for someone
Tool is on github: https://github.com/akshinmustafayev/EasyJob
You can configure application from the config.json file. Example is included in the release as well as on the repository page. I also decided to include example scripts in the release, so you won`t have trouble when adapting ypur scripts for the application.
For myself, I divided scripts by the purpose for each separate tab. Each tab has buttons in it attached to my scripts. To execute necessary script I just press the button.
Use cases:
So for example, there is one configuration file on web server. Occasionally developer responsible for that web service asks me to get actual production config file from the server. To give him that file, I just open necessary tab in the application, and press the necessary button. My script binded to that button executes, and gets config file from the server, puts it on my desktop and then sends it via email.
Another example. There is a Windows Service on one of our servers, which is responsible for execution of some high impact tasks. In rare occasions it can stop work properly. So to fix that, I just created script which connects to that server, cleans some files, and then starts back service. So when problem happens, I just press the button in the app and problem is fixed.
Hope that this tool might be useful for you
r/PowerShell • u/DragonToutNu • Aug 06 '20
I've created my first practical script and I felt like a king
Hello all, I just wanted to tell someone that today I've created my very first script with powershell.
What really made me happy is that I just started learning powershell. I'm currently reading "Learn Windows PowerShell in a Month of Lunches" and only at chapter 8.
I was given an excel sheet with about 350 user who I needed to update the job title and their manager.
I immediately realized that I could create a script soemthing with powershell to have it done in one go.
I used get-help on every single lines. Google the shit out of it and had to troubleshoot by excel document.
Whoever build that list made it really hard to automate. First they gave a column with the name of the user: Lastname, FirstName They also gave me the name of the new manager: FirstName LastName or FirstName, LastName or Lastname, FirstName
It was quite a puzzle but in the end I managed to modify the excel sheet to order the names to use the displayname to find them in AD and by creating a new column using the first letter of the first name + last name of the manager to use as username and update the parameter -manager.
Wasn't easy, but its only the beginning!
r/PowerShell • u/MessAdmin • Dec 01 '22
I wrote a guitar tuner in PowerShell. Thought you guys might get a kick out of it.
##Guitar Tuner
#Version 1.0
#Author: MessAdmin
#Startup
cls
[console]::Beep(164.81,40)
[console]::Beep(220,40)
[console]::Beep(293.66,40)
[console]::Beep(392,40)
[console]::Beep(493.88,40)
[console]::Beep(659.26,40)
#Set selection variable
$UserSelection = $null
While($UserSelection -ne 'Q'){
Write-Host 'Guitar Tuner'
Write-Host 'E1|-------------------------------------'
Write-Host 'A||-------------------------------------'
Write-Host 'D||-------------------------------------'
Write-Host 'G||-------------------------------------'
Write-Host 'B||-------------------------------------'
Write-Host 'E2|-------------------------------------'
$UserSelection = Read-Host -Prompt 'Enter a string or type Q to exit.'
Switch ("$UserSelection"){
E1 {[console]::Beep(164.81,4000)
cls
}
A {[console]::Beep(220,4000)
cls
}
D {[console]::Beep(293.66,4000)
cls
}
G {[console]::Beep(392,4000)
cls
}
B {[console]::Beep(493.88,4000)
cls
}
E2 {[console]::Beep(659.26,4000)
cls
}
Q {$UserSelection = Q
cls
}
Default{
cls
Write-Host 'Invalid Selection'
}
}
}r/PowerShell • u/ramblingcookiemonste • Aug 18 '16
PowerShell is open source, available for Linux, OS X
r/PowerShell • u/RademenesTheCat • Mar 15 '21
"PowerShell for Sysadmins" by Adam Bertram in newest Humble Bundle by No Starch Press
"PowerShell for Sysadmins" by Adam Bertram is available in the newest Humble Bundle by No Starch Press. With lot of other coding related books:
https://www.humblebundle.com/books/learn-you-more-code-no-starch-press-books
edit: fixed URL
r/PowerShell • u/Jdizzel97 • Nov 18 '19
Employee deleted 60,000 files from company sharepoint
r/PowerShell • u/adbertram • Aug 12 '19
Hundreds of free, how-to PowerShell videos on YouTube
Hey guys,
I founded a small startup a year or so ago and recruited a few dozen people to build short, how-to videos. Being as I'm big into PowerShell, myself and a lot of guys/gals recorded a ton of PowerShell how-to videos.
We're on a mission to get up to 1,000 subscribers and would love for you to subscribe! Granted, if you think the content is good but I assure you, there are hundreds of videos or as we call them snips on there.
https://www.youtube.com/channel/UCFgZ8AxNf1Bd1C6V5-Vx7kA
EDIT: If you want to get to the scripts for any of the videos, they are on GitHub here: https://github.com/TechSnips/SnipScripts
r/PowerShell • u/Lotus_Domino_Guy • Aug 26 '26
News OMG, I love powershell
I've been coding for 2 decades, and I recently had a payroll system to Active Directory project to do, and went with powershell. It's done, it works great, and I was looking at the code today, and spontaneously declared "I love powershell". its a remote day, so no one looked at my funny, but I'll list 3 reasons I love it. Feel free to add more.
No confusion with =, == or ===.
Simple equals logic, no bizarre conventions: Do you know how many times I've had to fix code in JS where someone did if (variableName=something), which of course sets variableName to something, not compares it. Powershell's -eq and -ne is so much better then =, ==, ===, !=, or <>.
2)No line termination character: Line's don't require ; to end. Ok, that isn't a big deal, and my IDE would catch it anyway, but its just a waste of characters to terminate every line of code.
3)String composition: In other languages, mixing variables and text is something like "words " + variableName + ":/ more words" + variableName2. And then its like "Oh, is this one a + or an &...." With powershell I can just do varString = "words: $variableName :/ more words $variableName2" and it all works!
Now, its not like I make stupid syntax mistakes a ton in other languages, but in today's backend world, I'm expected to regularly code in 5-10 languages, and Powershell was amazingly easy to learn and the syntax is just clean.
I thought you Powershell vets might appreciate a newb's perspective on it, especially since its all positive.
r/PowerShell • u/JohnSavill • Jun 30 '21
Information Just passed 250,000 views of lesson 1 of the PowerShell Master Class. Just wanted to say thanks!
r/PowerShell • u/MadBoyEvo • Feb 20 '19
PowerShell - Everything you wanted to know about Event Logs and then some