Skip to content

Commit e589d13

Browse files
authored
Document RemoveM365LicensesfromDisabledUsers3.ps1
Added documentation for RemoveM365LicensesfromDisabledUsers3.ps1 script, including its functionality and prerequisites.
1 parent 77b62d3 commit e589d13

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ PowerShell-Scripts/
2626
│ └── watch_X_job3.ps1
2727
│ └── Audit-AllUsersRolePerms.ps1
2828
│ └── Get-DisabledUsersLicenses6.ps1
29+
│ └── RemoveM365LicensesfromDisabledUsers3.ps1
2930
│ └── 👉** Azure AD application auditing tools **
3031
list_all_applications2.ps1
3132
BulkMultiPermExploitability2.ps1
@@ -192,6 +193,14 @@ Use like so:
192193

193194
`.\Get-DisabledUsersLicenses6.ps1 -ExportCsv .\disabled_licenses.csv`
194195

196+
---
197+
### `RemoveM365LicensesfromDisabledUsers3.ps1`
198+
199+
Enumerates disabled users and (by default in dry‑run) identifies and exports their assigned license names; when not in dry‑run it removes direct user licenses and logs actions.
200+
Prerequisites: An active Graph session (Connect-MgGraph) with User.ReadWrite.All and Directory.ReadWrite.All consent, Microsoft Graph PowerShell modules installed, sufficient admin rights to change licenses
201+
202+
203+
195204

196205
---
197206
👉** Azure AD application auditing tools **

0 commit comments

Comments
 (0)