Share via


Connect a disabled mailbox in Exchange Server

When you disable a mailbox, Exchange retains the mailbox in the mailbox database and switches the mailbox to a disabled state. The Exchange attributes are also removed from the corresponding Active Directory user account, but the user account is retained. The mailbox is retained until the deleted mailbox retention period expires, which is 30 days by default, before it's then deleted permanently (or purged) from the mailbox database.

Until a disabled mailbox is permanently deleted from the Exchange mailbox database, you can use the EAC or the Exchange Management Shell to reconnect it to the original Active Directory user account.

To learn more about disconnected mailboxes and perform other related management tasks, see the following topics:

What do you need to know before you begin?

  • Estimated time to complete: 2 minutes.

  • To open the EAC, see Exchange admin center in Exchange Server. To open the Exchange Management Shell, see Open the Exchange Management Shell.

  • Run the Get-User cmdlet in theExchange Management Shell to verify that the Active Directory user account that you want to connect the disabled mailbox to exists and that it isn't already associated with another mailbox. To connect a disabled mailbox to a user account, the account must exist and the value for the RecipientType property has to be User, which indicates that the account isn't already mailbox-enabled.

    You can also verify this information in Active Directory Users and Computers.

  • Replace <DisplayName> with the display name of the mailbox, and run the following commands in the Exchange Management Shell to verify that the disabled mailbox that you want to connect to a user account exists and isn't a soft-deleted mailbox.

    $dbs = Get-MailboxDatabase
    $dbs | foreach {Get-MailboxStatistics -Database $_.DistinguishedName} | where {$_.DisplayName -eq "<DisplayName>"} | Format-List DisplayName,Database,DisconnectReason
    

    To be able to connect a disabled mailbox, the mailbox has to exist in the mailbox database and the value for the DisconnectReason property has to be Disabled. If the mailbox has been purged from the database, the command won't return any results.

  • You need to be assigned permissions before you can perform this procedure or procedures. To see what permissions you need, see the "Recipient Provisioning Permissions" section in the Recipients Permissions topic.

  • For information about keyboard shortcuts that may apply to the procedures in this topic, see Keyboard shortcuts in the Exchange admin center.

Tip

Having problems? Ask for help in the Exchange forums. Visit the forums at: Exchange Server, Exchange Online, or Exchange Online Protection.

Use the EAC to connect a disabled mailbox

The following procedure shows how to connect a disabled user mailbox. You can also reconnect disabled linked mailboxes and disabled shared mailboxes to the corresponding user account.

  1. In the EAC, navigate to Recipients > Mailboxes.

  2. Click More More Options icon., and then click Connect a mailbox.

    A list of mailboxes that are disconnected on the selected Exchange server in your Exchange organization will be displayed.

    Note

    This list of disconnected mailboxes includes disabled mailboxes, deleted mailboxes, and soft-deleted mailboxes.

  3. Click the disabled mailbox that you want to reconnect, and then click Connect.

  4. In the window that asks if you're sure that you want to reconnect the mailbox, click Yes.

    Exchange will reconnect the disabled mailbox to the corresponding user account.

Use the Exchange Management Shell to connect a disabled mailbox or personal archive

Use the Connect-Mailbox cmdlet in the Exchange Management Shell to connect a user account to a disabled mailbox. You have to specify the type of mailbox that you're connecting. The following examples show the syntax for reconnecting user, linked, shared, and archive mailboxes.

This example connects a user mailbox. The Identity parameter specifies the disconnected mailbox in the Exchange database. The User parameter specifies the Active Directory user account to reconnect the mailbox to.

Connect-Mailbox -Identity "Jeffrey Zeng" -Database MBXDB01 -User "Jeffrey Zeng"

This example connects a linked mailbox. The Identity parameter specifies the disconnected mailbox in the Exchange database. The LinkedMasterAccount parameter specifies the Active Directory user account in the account forest that you want to reconnect the mailbox to. The Alias parameter specifies the alias, which is the portion of the email address on the left side of the at (@) symbol, for the reconnected mailbox.

Connect-Mailbox -Identity "Kai Axford" -Database MBXDB02 -LinkedDomainController FabrikamDC01 -LinkedMasterAccount [email protected] -Alias kaia

This example connects a shared mailbox.

Connect-Mailbox -Identity "Corporate Shared Mailbox" -Database "Mailbox Database 03" -User "Corporate Shared Mailbox" -Alias corpshared -Shared

Note

If you don't include the Alias parameter when you run the Connect-Mailbox cmdlet, the value specified in the User or LinkedMasterAccount parameter is used to create the email address alias for the reconnected mailbox.

This example connects a personal archive to the primary mailbox using the mailbox GUID stored in mailbox database DB01.

Enable-Mailbox -Identity "Megan Bown" -ArchiveGUID "95352f8b-e5aa-496f-ac7f-ce93357d7b0c" -ArchiveDatabase "DB01" -Archive

If you do not know the name of the personal archive, you can view it in the Exchange Management Shell by running the following command. This example returns all personal archive mailboxes in mailbox database DB01.

Get-MailboxDatabase "DB01" | Get-MailboxStatistics | Where {($_.DisconnectDate -ne $null) -and ($_.IsArchiveMailbox -eq $true)} | Format-Table DisplayName,MailboxGuid -AutoSize

Note

You can connect a personal archive mailbox to any primary mailbox you wish, even if it is not the original owner's mailbox. Use the AllowLegacyDNMismatch parameter to allow the connection of the archive mailbox to a different primary mailbox.

For detailed syntax and parameter information, see Connect-Mailbox.

How do you know this worked?

To verify that you've successfully connected a disabled mailbox to a user account, do one of the following:

  • In the EAC, click Recipients, navigate to the appropriate page for the mailbox type that you reconnected, click Refresh Refresh icon., and verify that the mailbox is listed.

  • In Active Directory Users and Computers, right-click the user account whose mailbox you disabled, and then click Properties. On the General tab, notice that the E-mail box is populated with the email address for the reconnected mailbox.

  • In theExchange Management Shell,replace <Identity> with the name of the user account and run the following command:

    Get-User "<Identity>"
    

    The UserMailbox value for the RecipientType property indicates that the user account and the mailbox are connected. You can also run the Get-Mailbox cmdlet to verify that the mailbox exists.