Solved

Office 365 Terminated/ReHired Employee Mess

Posted on 2016-10-13
2
25 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 38

Assisted Solution

by:Vasil Michev (MVP)
Vasil Michev (MVP) earned 250 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 4

Accepted Solution

by:
Andy Navi earned 250 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

Don't lose your head updating email signatures!

Do your end users still have the wrong email signature? Do email signature updates bore you or fill you with a sense of dread? You can make this a whole lot easier on yourself by trusting an Exclaimer email signature management solution. Over 50 million users do...so should you!

Join & Write a Comment

Synchronize a new Active Directory domain with an existing Office 365 tenant
Marketers need statistics and metrics like everybody else needs oxygen. In this article we explain how to enable marketing campaign statistics for Microsoft Exchange mail.
In this video we show how to create a mailbox database in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Servers >> Data…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

706 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now