Invoke-M365TenantAudit
1.0.2
Connects to Microsoft Graph with read-only permissions, checks common
Microsoft 365 / Entra ID security baseline items and writes a
self-contained HTML report.
THIS SCRIPT MAKES NO CHANGES TO YOUR TENANT.
Checks:
- Licensing (Entra ID P1/P2 detection)
- Security Defaults / Conditional Access (MFA for all, legacy auth block,
admin MFA, break-glass exclusions,
Microsoft 365 / Entra ID security baseline items and writes a
self-contained HTML report.
THIS SCRIPT MAKES NO CHANGES TO YOUR TENANT.
Checks:
- Licensing (Entra ID P1/P2 detection)
- Security Defaults / Conditional Access (MFA for all, legacy auth block,
admin MFA, break-glass exclusions,
Connects to Microsoft Graph with read-only permissions, checks common
Microsoft 365 / Entra ID security baseline items and writes a
self-contained HTML report.
THIS SCRIPT MAKES NO CHANGES TO YOUR TENANT.
Checks:
- Licensing (Entra ID P1/P2 detection)
- Security Defaults / Conditional Access (MFA for all, legacy auth block,
admin MFA, break-glass exclusions, report-only policies)
- Global Administrator count
- MFA registration (all users + admins)
- Stale / never-used accounts and guests
- User consent to apps, guest invite settings, app creation
- App registration secrets/certificates (expired / expiring)
- Microsoft Secure Score
- Intune compliance policies
- Email DNS: SPF, DMARC, DKIM for each custom domain
- Password expiration policy
Show more
Microsoft 365 / Entra ID security baseline items and writes a
self-contained HTML report.
THIS SCRIPT MAKES NO CHANGES TO YOUR TENANT.
Checks:
- Licensing (Entra ID P1/P2 detection)
- Security Defaults / Conditional Access (MFA for all, legacy auth block,
admin MFA, break-glass exclusions, report-only policies)
- Global Administrator count
- MFA registration (all users + admins)
- Stale / never-used accounts and guests
- User consent to apps, guest invite settings, app creation
- App registration secrets/certificates (expired / expiring)
- Microsoft Secure Score
- Intune compliance policies
- Email DNS: SPF, DMARC, DKIM for each custom domain
- Password expiration policy
Installation Options
Owners
Copyright
(c) 2026 Admin of One. MIT License.
Package Details
Author(s)
- Admin of One
Tags
M365 Microsoft365 Security Audit EntraID ConditionalAccess Intune MFA
Functions
Add-Result Get-GraphObject Get-GraphCollection Get-ShortError Resolve-DohRecord Test-RequiresMfa ConvertTo-Html-Safe
Dependencies
This script has no dependencies.
Release Notes
1.0.2 - Report footer links to the Tenant Lockdown Kit.
1.0.1 - Real-tenant fixes.
FileList
- Invoke-M365TenantAudit.nuspec
- Invoke-M365TenantAudit.ps1
Version History
| Version | Downloads | Last updated |
|---|---|---|
| 1.0.3 | 12 | 9/29/2026 |
| 1.0.2 (current version) | 8 | 9/29/2026 |