r/PowerShell • u/Typical_Advance_7939 • Oct 22 '26
Solved Free read-only script: quick security check for small-business M365 tenants
Small M365 tenants tend to get the same handful of settings wrong: no MFA enforcement, legacy auth still open, users allowed to consent to any app, “Anyone” sharing links switched on. I wrote a script that checks eight of these and spits out an HTML report with the fix next to each failure.
It only asks for read scopes through Microsoft Graph and doesn’t change anything. It’s about 230 lines, so it’s easy to read before you run it.
https://github.com/thecyberape/m365-quick-check
Disclosure: it’s a cut-down version of a longer audit script I sell alongside a book. The README says so. The free one is MIT and complete on its own, so use it however you like.
Would appreciate feedback, especially from anyone who runs it against Business Basic/Standard tenants. I’d like to know which checks come back INFO instead of PASS/FAIL there.
2
u/BlackV 28d ago
Appreciate the disclosure
1
u/stefanwey365 27d ago
Try https://maester.dev