User Profile
chad512
Copper Contributor
Joined Feb 04, 2020
User Widgets
Recent Discussions
Re: Recreate a mailbox for an existing user?
PeterRising It's often the case in migration scenarios that users are provisioned in the service before their mail is migrated, so they start using things like OneDrive and SharePoint long before the mail switch. Migration testing may push data into the service mailbox that we want to purge before the actual migration. Recreating the user would mean the user loses all of their accumulated non-mail data.22KViews0likes2CommentsRecreate a mailbox for an existing user?
Here's what I'd like to do: A mail user is created an assigned a license at some point. The user may have been synchronized from on-prem or may have been created directly in Azure AD. At a later point, I want to recreate the user's mailbox without deleting the user so the user can start with a fresh mailbox. Here's what I've tried: Remove the user's license, verify the mailbox cannot be located by Get-Mailbox, add back the license. Result: the user is reattached to the same mailbox. Obviously this sequence happens within the 30-day retention period. Convert the mailbox to shared, remove the user's license, add back the license. Result: the user is reattached to the same mailbox, though it is still shared. Attempt to use Disable-Mailbox -PermanentlyDisable. Result: failure because the user is licensed. Remove the user's license and then attempt to run Disable-Mailbox -PermanentlyDisable. Result: failure because the mailbox cannot be found. I'm starting to think what I want to do is simply not possible, but I thought I'd fish for some fresh ideas since I'm out of them. One thought I had was to purge the deleted mailbox before the 30-day retention period is up, but I don't see a way to get a handle to it. Attempt to use Get-Mailbox with -IncludeInactiveMailbox and -SoftDeletedMailbox haven't located the mailbox for me.Solved24KViews0likes11Comments
Recent Blog Articles
No content to show