Remove / Purge Deleted Users from Office 365 Admin

Andy

Well-known member
Creative Team
User ID
1
Joined
7 Jan 2019
Messages
1,315
Reaction score
87
Points
48
You can run the command via AD PowerShell directly:
Code:
$msolcred = get-credential
connect-msolservice -credential $msolcred
To purge the deleted user accounts:
Code:
get-msoluser –returndeletedusers -maxresults 100000 | remove-msoluser -removefromrecyclebin -force
 
 Short URL:
Back
Top