top of page
  • Writer's picturekhal

Issues with deleting and recreating O365 user with exchange mailbox

Sometimes if a user account is deleted and an identical account created, especially in quick succession you may find that the mailbox goes into a perpetual ‘Mailbox preparing’ state. Or sometimes there are the following errors.

You must ensure you delete the user from the recycle bin before setup again as there could be GUID conflicts.

The process to remove deleted item from recycle bin.

1. Get-MsolUser -ReturnDeletedUsers | ft UserPrincipalName,ObjectId

Search for specific deleted MSOL accounts using free-text search:

Get-MsolUser -ReturnDeletedUsers -SearchString "{SearchString}" | ft UserPrincipalName,ObjectId

2. Delete account using ObjectId (the recommended method as ObjectId is unique to every user):

3. Remove-MsolUser -ObjectId {ObjectId} -RemoveFromRecycleBin -Force

Once deleted try again, this time account should setup without the above mentioned errors.

23 views0 comments

Recent Posts

See All


bottom of page