File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ PowerShell-Scripts/
2525│ └── enum_entra_admins.ps1 & find_disabled_ad_accounts.ps1
2626│ └── watch_X_job3.ps1
2727│ └── Audit-AllUsersRolePerms.ps1
28+ │ └── Get-DisabledUsersLicenses6.ps1
2829│ └── 👉** Azure AD application auditing tools **
2930 list_all_applications2.ps1
3031 BulkMultiPermExploitability2.ps1
@@ -180,6 +181,17 @@ find_disabled_ad_accounts.ps1 will read that input file AdminLikeAccounts_Report
180181It will produce a spreadsheet file named DisabledAccounts_Report.csv
181182Admins should investigate these files and clean up their AD/AAD as needed.
182183
184+ ---
185+ ### ` Get-DisabledUsersLicenses6.ps1 `
186+
187+ Scans the tenant for disabled Microsoft 365 users via Microsoft Graph and resolves their assigned licenses into readable names.
188+ Outputs a formatted table and optionally exports a CSV; preserves dry‑run behavior so no changes are made unless explicitly requested.
189+
190+ Use like so:
191+ ` Connect-MgGraph -Scopes "User.Read.All","Directory.Read.All" -UseDeviceAuthentication `
192+ ` .\Get-DisabledUsersLicenses6.ps1 -ExportCsv .\disabled_licenses.csv `
193+
194+
183195---
184196👉** Azure AD application auditing tools **
185197
You can’t perform that action at this time.
0 commit comments