Skip to content

Commit fd05bca

Browse files
authored
Document Get-DisabledUsersLicenses6.ps1 functionality
Added documentation for Get-DisabledUsersLicenses6.ps1 script.
1 parent 77b56f5 commit fd05bca

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff 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
180181
It will produce a spreadsheet file named DisabledAccounts_Report.csv
181182
Admins 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

0 commit comments

Comments
 (0)