Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Office 365 Terminated/ReHired Employee Mess

Posted on 2016-10-13
2
Medium Priority
?
154 Views
Last Modified: 2016-10-18
I'm currently working with a company where AD really hasn't been taken care of. No policy on deleting terminated users etc... simply disable the AD account and leave the mailbox there which continues to receive email. :sigh:

So now that users are migrated to Office 365, the dilemma is that an employee was terminated, then later rehired back. So the AD account was enabled and a new mailbox created so now I have a DirSynced old mailbox for the user in O365 which is getting the email, but the user cant receive it because his new mailbox, same email address, is on premises... Is there a way to force a mailbox deletion in the cloud so I can then migrate the 'new' mailbox to O365?
0
Comment
Question by:Christian Hans
2 Comments
 
LVL 44

Assisted Solution

by:Vasil Michev (MVP)
Vasil Michev (MVP) earned 1000 total points
ID: 41842490
Remove the Exchange license for the cloud user and use the Disable-Mailbox cmdlet with the -PermanentlyDisable switch to purge the cloud mailbox. Of course, make sure to backup any important data first.
0
 
LVL 5

Accepted Solution

by:
Addy Nadia earned 1000 total points
ID: 41842538
To hard delete the synced user, we need to perform the following cmdlets using Azure PowerShell.
remove-MsolUser -UserPrincipalName TestUser
remove-MsolUser -UserPrincipalName TestUser –RemoveFromRecycleBin
0

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Want to know how to use Exchange Server Eseutil command? Go through this article as it gives you the know-how.
How to effectively resolve the number one email related issue received by helpdesks.
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

972 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question