User offboarding
Leavers · Guided workflow
Review a departing employee’s account, block access and preserve their mailbox through a guided process.
- Starting point
- The employee’s sign-in email address
- Output
- One audit log in an outcome folder
What the script does
- Enter the employee’s email, choose the actions and sign in to Microsoft 365.
- Review the current settings and what will change, then confirm once to proceed.
- See each result in the console, with existing settings skipped and one audit log saved.
Scope and considerations
For cloud-only member users. Add -WhatIf for a read-only check. Account deletion, licence removal and OneDrive retention remain separate decisions.