Set-MSOLUserLicense -UserPrincipalName “<Account>” -RemoveLicensesThis may leave the mailbox in a disabled state that prevents it from being displayed as either Soft Deleted or Inactive. In this situation, the following commands won’t find the mailbox:
Get-Mailbox <Account> -SoftDeletedMailbox
Get-Mailbox <Account> -IncludeInactive
Customers may find that the Azure user object is missing because they may have deleted the associated Active Directory object on their side. If this is the case, they will find the user object in the Recycle Bin in the vNext Admin Portal. (The customer will be converted to a Cloud user instead of synchronized by Active Directory). The user object can be restored from the Recycle Bin and relicensed to reconnect the mailbox.
As soon as the mailboxes are reconnected, they can be exported through the eDiscovery Export Tool.
Article ID: 3158794 - Last Review: Apr 25, 2016 - Revision: 1