How to recover an Inactive Mailbox
*This will convert the inactive mailbox into a new active mailbox. The inactive mailbox will be removed. Exchange Online Powershell must be used, you cant use Exchange Admin Center.
1. Run the following command to get information on inactive mailboxes.
Get-Mailbox -InactiveMailboxOnly | FL Name,DistinguishedName,ExchangeGuid,PrimarySmtpAddress
2. This command creates a variable that contains the properties of the inactive mailbox. *Use the value of the DistinguishedName or ExchangeGUID to identify the inactive mailbox.
$InactiveMailbox = Get-Mailbox -InactiveMailboxOnly -Identity <identity of inactive mailbox>
3. This command recovers the inactive mailbox to the user Ann Beebe
New-Mailbox -InactiveMailbox $InactiveMailbox.DistinguishedName -Name annbeebe -FirstName Ann -LastName Beebe -DisplayName "Ann Beebe" -MicrosoftOnlineServicesID Ann.Beebe@cogs.us -Password (ConvertTo-SecureString -String 'P@ssw0rd' -AsPlainText -Force) -ResetPasswordOnNextLogon $true