r/PowerShell • u/KavyaJune • Sep 04 '24
Script Sharing PowerShell scripts for managing and auditing Microsoft 365
Here's is a hundreds of scripts tailored for managing, reporting, and auditing Microsoft 365 organizations. Most of the scripts are written by myself and these are perfect for tackling the day-to-day challenges. For example,
Assigning and removing licenses in bulk
Finding and removing external email forwarding
Identifying inactive users
Monitoring external sharing
Tracking file deletions in SharePoint Online
User sign-in activities,
Auditing email deletions
Room mailbox usage
Calendar permission reports
Teams meetings attended by a specific users, etc.
And, these scripts are scheduler-friendly. So, you can easily automate the script execution using Task Scheduler or Azure Automation.
You can download the scripts from GitHub.
If you have any suggestions and script requirements, feel free to share.
1
u/auggie_derik Oct 05 '26
Scripts are great until you're managing 40 tenants and the guy who wrote them leaves. Then you've got a folder of .ps1 files nobody fully understands, half of them break when Microsoft changes something quietly, and you're back to doing it by hand anyway. The real problem isn't writing the script, it's that the underlying settings keep drifting and nothing tells you when they do. We ran a survey earlier this year and found that 58% of MSPs are still applying security baselines manually or with custom scripts, which sounds like progress until you realize most of those scripts aren't checking whether the settings stuck last month. That's the part that gets people. Augmentt kind of grew out of exactly that frustration, but honestly even if you don't use a platform, the scripts in this repo are a decent stopgap for anyone who isn't managing at scale yet.