You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -249,11 +249,37 @@ An optional per-user summary consolidates each disabled account’s licenses and
249
249
```
250
250
251
251
---
252
-
### `RemoveM365LicensesfromDisabledUsers3.ps1`
252
+
### `RemoveM365LicensesfromDisabledUsers.ps1`
253
253
254
-
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.
255
-
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
254
+
Audits disabled Microsoft Entra users with effective license assignments and exports detailed license-source and action-summary reports. The script distinguishes directly assigned licenses from group-based licensing and operates in audit-only mode by default. Direct licenses can be removed only through the explicit -Execute switch, with support for approved-user CSV input, targeted UPNs, -WhatIf, confirmation prompts, and detailed action logging. Reuses the current Microsoft Graph PowerShell session and does not request new consent automatically.
0 commit comments