• Health tips to prevent the spread of COVID-19:
    • Wash your hands frequently;
    • Maintain 2 meters social distancing;
    • Minimise outdoor activities.
    Stay safe in your bubble!

Remove / Purge Deleted Users from Office 365 Admin

Andy

Administrator
User ID
1
Joined
7 Jan 2019
Messages
201
Reaction score
8
Points
18
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:
Top