blog.marccus.net

Live. Life is Wonderful.





Connect Office 365 using Powershell to Purge Deleted Users

 

If ever encounter the need to remove deleted users in office 365 urgently, can try the step below.

1. Launch Microsoft Azure Active Directory Module for Windows Powershell in administrator mode.

2. Enter the line Connect-MsolService to login.

If encounter issue can’t login, try to download and update from the url belows:

Microsoft Online Services Sign-In Assistant

Windows Azure Active Directory Module for Windows PowerShell/span>

3. Once logged in, enter the line Get-MsolUser -ReturnDeletedUsers to get the list of users that’s deleted.

4. Enter the line Remove-MsolUser -UserPrincipalName [email protected] -RemoveFromRecycleBin to permanently remove the deleted user. Be cautious as this step is irreversible, so carefully type the user name.


 




written by marccus.   category: Tech Tips.   Total 445 views    

 



Thanks for your reply!
谢谢你的留言

Comment section

avatar

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  Subscribe  
Notify of


Comment section

avatar

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  Subscribe  
Notify of




Subscribe To Our Newsletter

Subscribe To Our Newsletter

Join our mailing list to receive the latest news and updates from our team.

You have Successfully Subscribed!

Pin It on Pinterest