Tip: Use Exchange Management Shell to Recover Deleted Mailboxes

Follow Our Daily Tips

RSS | Twitter | Blog | Facebook

Tell Us Your Tips

Share your tips and tweaks.

When you delete a mailbox from a user account, the mailbox is retained as a disconnected mailbox according to the mailbox retention setting. You can reconnect the mailbox to the original user account or another user account if necessary.

When you delete a user account and the related mailbox, the mailbox is retained as a disconnected mailbox according to the mailbox retention setting. In this case, you can connect the mailbox to an existing user account if necessary.

You can use the Connect-Mailbox cmdlet, as shown here, to recover the mailbox by connecting it to a user account.

Syntax:

Connect-Mailbox -Identity OrigMailboxIdentity
 -Database DatabaseIdentity -User NewUserIdentity 
[-ActiveSyncMailboxPolicy PolicyId] [-Alias Alias] 
[-DomainController DCName] [-ManagedFolderMailboxPolicy PolicyId] 
[-ManagedFolderMailboxPolicyAllowed <$true | $false>] 
[-Archive <$true | $false>] [-Equipment <$true | $false>] 
[-Room <$true | $false>] [-Shared <$true | $false>] 
[-ValidateOnly <$true | $false>]

[-LinkedCredential Credential] [-LinkedDomainController DCName] 
[-LinkedMasterAccount UserId]

Usage:

Connect-Mailbox -Identity "Per Reitzel" 
-Database "Accounting Mail" -User "CPANDL\perr" -Alias "perr" 

Connect-Mailbox -Identity "Per Reitzel" 
-Database "Accounting Mail" -LinkedDomainController CorpServer72
-LinkedMasterAccount "CPANDL\perr"

From the Microsoft Press book Microsoft Exchange Server 2010 Administrator’s Pocket Consultant by William R. Stanek.

Looking for More Tips?

For more tips on Exchange Server and other Microsoft technologies, visit the TechNet Magazine Tips library.