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.


 
0 0 vote
Article Rating




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

 



Thanks for your reply!
谢谢你的留言

Subscribe
Notify of
guest

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

0 Comments
Inline Feedbacks
View all comments


Subscribe
Notify of
guest

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

0 Comments
Inline Feedbacks
View all comments




0
Would love your thoughts, please comment.x
()
x
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