Connect or restore a deleted mailbox (2024)

  • Article

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

Until a deleted mailbox is permanently deleted from the Exchange mailbox database, you can use the EAC or the Exchange Management Shell to connect it to an Active Directory user account. You can also use the Exchange Management Shell to restore the contents of the deleted mailbox to an existing mailbox.

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

  • Disconnected mailboxes

  • Disable or delete a mailbox in Exchange Server

  • Connect a disabled mailbox

  • Permanently delete a mailbox

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.

  • Create a new user account in Active Directory to connect the deleted mailbox to. Or use the Get-User cmdlet in the Exchange Management Shell to verify that the Active Directory user account that you want to connect the deleted mailbox to exists and that it isn't already associated with another mailbox. To connect a deleted 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.

    For on-premises Exchange organizations, you can also verify this information in Active Directory Users and Computers.

    Important

    When you connect deleted linked mailboxes, resource mailboxes, or shared mailboxes, the Active Directory user account that you're connecting the mailbox to must be disabled.

  • To verify that the deleted mailbox that you want to connect a user account to exists in the mailbox database and isn't a soft-deleted mailbox, run the following command:

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

    The deleted 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.

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

Connect a deleted mailbox

When you connect a deleted mailbox, you associate the mailbox with a user account that isn't mail-enabled, which means that it doesn't have an existing mailbox. To connect a deleted mailbox to a user account that has a mailbox, you have to restore the deleted mailbox. For more information, see Restore a deleted mailbox later in this topic.

Use the EAC to connect a deleted mailbox

The following procedure shows how to connect a deleted user mailbox to a user account. You can also use this procedure to connect linked mailboxes, resource mailboxes, and shared mailboxes that have been deleted to a user account.

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

  2. Click More Connect or restore a deleted mailbox (1), 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 deleted mailbox that you want to connect a user to, and then click Connect.

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

    A list of user accounts that aren't mail-enabled is displayed.

  5. Click the user that you want to connect the deleted mailbox to, and then click OK.

    Exchange will connect the deleted mailbox to the user account that you selected.

Use the Exchange Management Shell to connect a deleted mailbox

Use the Connect-Mailbox cmdlet in the Exchange Management Shell to connect a deleted mailbox to a user account that isn't mail enabled. You have to specify the type of mailbox that you're connecting. The following examples show the syntax for reconnecting user, linked, room, equipment, and shared mailboxes. In all examples, the optional Alias parameter is used to specify the email alias, which is the portion of the email address on the left side of the at (@) symbol. If you don't include the Alias parameter, the value specified in the User or LinkedMasterAccount parameter is used to create the alias for the email address for the reconnected mailbox.

Note

As previously stated, when you connect linked, resource, or shared mailboxes, the Active Directory user account that you're linking the mailbox to must be disabled.

This example connects a deleted user mailbox to a user account that isn't mail enabled. The Identity parameter specifies the display name of the deleted mailbox retained in the mailbox database named MBXDB01. The User parameter specifies the Active Directory user account to connect the mailbox to.

Connect-Mailbox -Identity "Paul Cannon" -Database MBXDB01 -User "Robin Wood" -Alias robinw

Note

You can also use the values for the LegacyDN or MailboxGuid properties to identify the deleted mailbox.

This example connects a linked mailbox. The Identity parameter specifies the deleted mailbox on the mailbox database named MBXDB02. The LinkedMasterAccount parameter specifies the Active Directory user account in the account forest that you want to connect the mailbox to. The LinkedDomainController parameter specifies a domain controller in the account forest.

Connect-Mailbox -Identity "Temp User" -Database MBXDB02 -LinkedDomainController FabrikamDC01 -LinkedMasterAccount [email protected] -Alias dpark

This example connects a room mailbox.

Connect-Mailbox -Identity "rm2121" -Database "MBXResourceDB" -User "Conference Room 2121" -Alias ConfRm2121 -Room

This example connects an equipment mailbox.

Connect-Mailbox -Identity "MotorPool01" -Database "MBXResourceDB" -User "Van01 (12 passengers)" -Alias van01 -Equipment

This example connects a shared mailbox.

Connect-Mailbox -Identity "Printer Support" -Database MBXDB01 -User "Corp Printer Support" -Alias corpprint -Shared

Note

You can also use the LegacyDN or MailboxGuid values to identify the deleted mailbox.

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

How do you know this worked?

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

  • In the EAC, click Recipients, go to the appropriate page for the mailbox type that you connected, click Refresh Connect or restore a deleted mailbox (2), and verify that the mailbox is listed.

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

  • In the Exchange Management Shell, 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 <identity> command to verify that the mailbox was connected.

Restore a deleted mailbox

You can use the Exchange Management Shell to restore a deleted mailbox to an existing mailbox using the New-MailboxRestoreRequest cmdlet. When you restore a deleted mailbox, its contents are copied to an existing mailbox, which is referred to as the target mailbox. After a deleted mailbox is restored, it's still retained in the mailbox database until it's permanently deleted by an administrator or purged after the deleted mailbox retention period expires.

After a mailbox restore request is successfully completed, it's retained for 30 days, by default, before it's removed. You can remove the mailbox sooner by using the Remove-StoreMailbox cmdlet.

Note

You can't use the EAC to restore a deleted mailbox.

Use the Exchange Management Shell to restore a deleted mailbox

To create a mailbox restore request, you have to use the display name, legacy distinguished name (DN), or mailbox GUID of the deleted mailbox. Use the Get-MailboxStatistics cmdlet to display the values of the DisplayName, MailboxGuid, and LegacyDN properties for the deleted mailbox that you want to restore. For example, run the following commands to return this information for all disabled and deleted mailboxes in your organization.

$dbs = Get-MailboxDatabase$dbs | foreach {Get-MailboxStatistics -Database $_.DistinguishedName} | where {$_.DisconnectReason -eq "Disabled"} | Format-Table DisplayName,MailboxGuid,Database,DisconnectDate

This example restores the deleted mailbox, which is identified by the SourceStoreMailbox parameter and is located on the MBXDB01 mailbox database, to the target mailbox Debra Garcia. The AllowLegacyDNMismatch parameter is used so the source mailbox can be restored to a different mailbox, one that doesn't have the same legacy DN value.

New-MailboxRestoreRequest -SourceStoreMailbox e4890ee7-79a2-4f94-9569-91e61eac372b -SourceDatabase MBXDB01 -TargetMailbox "Debra Garcia" -AllowLegacyDNMismatch

This example restores Pilar Pinilla's deleted archive mailbox to her current archive mailbox. The AllowLegacyDNMismatch parameter isn't necessary because a primary mailbox and its corresponding archive mailbox have the same legacy DN.

New-MailboxRestoreRequest -SourceStoreMailbox "Personal Archive - Pilar Pinilla" -SourceDatabase "MDB01" -TargetMailbox [email protected] -TargetIsArchive

For detailed syntax and parameter information, see New-MailboxRestoreRequest.

How do you know this worked?

To verify that you've successfully restored a deleted mailbox to the target mailbox, run the Get-MailboxRestoreRequest cmdlet to display information about the restore request. If the restore request was successfully created, the Status property will have a value of Queued, InProgress, or Completed. After the restore request is completed, the contents from the deleted mailbox will appear in the target mailbox.

For more information, see:

  • Manage Mailbox Restore Requests

  • Get-MailboxRestoreRequest

  • Get-MailboxRestoreRequestStatistics

Connect or restore a deleted mailbox (2024)

FAQs

How can I retrieve a deleted mailbox? ›

Use the Microsoft 365 admin center to Restore a user account
  1. Go to Admin Centre.
  2. Users.
  3. Deleted Users.
  4. Open the deleted user.
  5. Click on restore the mailbox.
  6. After Clicking on restoring the mailbox it will appear in Active users .
  7. Please assign the License to that User and change the password.

How to recover a mailbox in Outlook? ›

Use the Microsoft 365 admin center to restore a user account

If the mailbox was deleted by deleting the corresponding user account, you can restore the mailbox by restoring the user account in the Microsoft 365 admin center. To restore a user account, see Delete or restore users.

How to connect a disconnected mailbox in Office 365? ›

Use the EAC to connect a disabled mailbox
  1. In the EAC, navigate to Recipients > Mailboxes.
  2. Click More. , and then click Connect a mailbox. ...
  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.
Feb 21, 2023

How do I restore a deleted email? ›

Important:
  1. On your Android phone or tablet, open the Gmail app .
  2. At the top left, tap Menu. Trash.
  3. On the left of each message you want to recover, tap the sender's profile image.
  4. At the top right, tap More. Move to.
  5. In the "Move to" menu, choose where you want to move the messages.

Top Articles
Sharlife - Crypto Shariah Status
Private Banking - Private Bank Accounts | HSBC UK
Play FETCH GAMES for Free!
Avonlea Havanese
Pieology Nutrition Calculator Mobile
Couchtuner The Office
Kobold Beast Tribe Guide and Rewards
Terraria Enchanting
Dr Lisa Jones Dvm Married
Sprague Brook Park Camping Reservations
Optimal Perks Rs3
Sunday World Northern Ireland
Gina's Pizza Port Charlotte Fl
A.e.a.o.n.m.s
Zoebaby222
Spelunking The Den Wow
454 Cu In Liters
Mile Split Fl
Craftology East Peoria Il
Katherine Croan Ewald
Cyndaquil Gen 4 Learnset
Jinx Chapter 24: Release Date, Spoilers & Where To Read - OtakuKart
Praew Phat
Sprinkler Lv2
Adt Residential Sales Representative Salary
How Long After Dayquil Can I Take Benadryl
Piri Leaked
Sofia the baddie dog
Lacey Costco Gas Price
Gen 50 Kjv
Visit the UK as a Standard Visitor
San Jac Email Log In
APUSH Unit 6 Practice DBQ Prompt Answers & Feedback | AP US History Class Notes | Fiveable
James Ingram | Biography, Songs, Hits, & Cause of Death
1475 Akron Way Forney Tx 75126
Warren County Skyward
Mrstryst
Autotrader Bmw X5
Despacito Justin Bieber Lyrics
Junee Warehouse | Imamother
Priscilla 2023 Showtimes Near Consolidated Theatres Ward With Titan Luxe
Skip The Games Grand Rapids Mi
Ross Dress For Less Hiring Near Me
Bill Manser Net Worth
Busted Newspaper Mcpherson Kansas
Rush Copley Swim Lessons
Aurora Southeast Recreation Center And Fieldhouse Reviews
Workday Latech Edu
Skyward Login Wylie Isd
ESPN's New Standalone Streaming Service Will Be Available Through Disney+ In 2025
Tamilblasters.wu
Asisn Massage Near Me
Latest Posts
Article information

Author: Virgilio Hermann JD

Last Updated:

Views: 5505

Rating: 4 / 5 (61 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Virgilio Hermann JD

Birthday: 1997-12-21

Address: 6946 Schoen Cove, Sipesshire, MO 55944

Phone: +3763365785260

Job: Accounting Engineer

Hobby: Web surfing, Rafting, Dowsing, Stand-up comedy, Ghost hunting, Swimming, Amateur radio

Introduction: My name is Virgilio Hermann JD, I am a fine, gifted, beautiful, encouraging, kind, talented, zealous person who loves writing and wants to share my knowledge and understanding with you.