Download and review the versioned script before running it. It writes licensing and account data to a local CSV. Sample mode creates fictional data without connecting to Microsoft 365.
Permissions, exported data and execution
Live mode uses delegated Microsoft Graph read permissions. Your organization must authorize the account and scopes. User.Read.All, AuditLog.Read.All, Directory.Read.All.
The CSV can contain names, email addresses, departments, account status, last sign-in and license identifiers. Review it before sharing or uploading it. The script asks before installing missing Microsoft Graph PowerShell modules from PSGallery.
From the download folder, follow your organization’s execution policy. Try fictional sample data first.
.\Run-TradisterM365Audit-v1.0.0.ps1 -GenerateSampleData.\Run-TradisterM365Audit-v1.0.0.ps1