Recover Inactive Mailbox 0365

https://support.office.com/en-us/article/recover-an-inactive-mailbox-in-office-365-35d0ecdb-7cb0-44be-ad5c-69df2f8f8b25



Get-Mailbox -InactiveMailboxOnly | FL identity,Name,DistinguishedName,ExchangeGuid,PrimarySmtpAddress

copy the identity for the box.

recover

$InactiveMailbox = Get-Mailbox -InactiveMailboxOnly -Identity < paste identity of inactive mailbox>


New-Mailbox -InactiveMailbox $InactiveMailbox.DistinguishedName -Name johndoe -FirstName john -LastName doe -DisplayName "johndoesh" -MicrosoftOnlineServicesID jdoe@domain.com.au -Password (ConvertTo-SecureString -String 'Welcome4youHere!!' -AsPlainText -Force) -ResetPasswordOnNextLogon $true


Creates a new mailbox and gives it password Welcome4youHere!!

Comments

Popular Posts