Recover a Deleted Mailbox in Live@edu in Windows PowerShell

 

Applies to: Live@edu

Topic Last Modified: 2013-03-21

Typically, you can recover a deleted mailbox if the mailbox was deleted fewer than 30 days ago. For an explanation of situations in which a deleted mailbox isn't recoverable, see Deleted Mailboxes in Live@edu.

noteNote:
If you’re using Office 365, the deleted mailbox recovery procedures are completed only in the Office 365 portal.
For more information about Office 365 mailbox recovery procedures, see the following Help topics:

In Live@edu, you can recover deleted mailboxes in the Exchange Control Panel. For more information, see Recover a Deleted Mailbox in Live@edu. However, you can also use Windows PowerShell, if you prefer. These are your options:

Before you begin

  • To learn how to install and configure Windows PowerShell and connect to the service, see Use Windows PowerShell in Exchange Online.

  • You can use the Get-RemovedMailbox cmdlet to view the recoverable mailboxes in your organization. If the deleted mailbox isn't listed, the mailbox isn't recoverable. If Get-RemovedMailbox returns more than one deleted mailbox for a user, identify the appropriate deleted mailbox in the results, and use the SAMAccountName or GUID value of that deleted mailbox to identify the deleted mailbox using the RemovedMailbox parameter.

  • When a mailbox is deleted, the following mailbox properties aren't modified, so you can use any of them to identify the deleted mailbox:

    • Name   Note that Name and DisplayName are different mailbox properties that may have the same value, but the values may be completely different.

    • WindowsLiveID

    • SAMAccountName

    • Guid

Recover a deleted mailbox and the original Windows Live ID and password in Live@edu

Run the following command:

Undo-SoftDeletedMailbox -WindowsLiveID <WindowsLiveId> -Password <SecureString>

For example, suppose you deleted the mailbox for a user named Kim Akers, and you kept the Windows Live ID named kakers@contoso.edu. To recover the mailbox and the original Windows Live ID, run the following command:

Undo-SoftDeletedMailbox kakers@contoso.edu -WindowsLiveID kakers@contoso.edu -Password (ConvertTo-SecureString -String 'Pa$$word1' -AsPlainText -Force)

Top of page

Recover a deleted mailbox and the original Windows Live ID with a new password in Live@edu

Run the following command:

Undo-SoftDeletedMailbox -SoftDeletedObject <MailboxIdParameter> -Password <SecureString>

For example, suppose you deleted the mailbox for a user named Tamara Johnston, and you didn't keep the Windows Live ID named tjohnston@contoso.edu. To recover the mailbox and the original Windows Live ID together with the new password Pa$$word1, run the following command:

Undo-SoftDeletedMailbox -SoftDeletedObject tjohnston -Password ConvertTo-SecureString -String 'Pa$$word1' -AsPlainText -Force

Top of page

Recover a deleted mailbox and create a new Windows Live ID in Live@edu

This procedure uses the same syntax as the previous procedure that recovers the deleted mailbox by using the original Windows Live ID and a new password. However, to create a new Windows Live ID for the recovered mailbox, you must specify a completely different Windows Live ID.

For example, suppose you deleted the mailbox for a user named Ayla Kol who had the Windows Live ID akol@contoso.edu. To recover the mailbox and create a new Windows Live ID named aylakol@contoso.edu together with the password Pa$$word1, run the following command:

Undo-SoftDeletedMailbox -SoftDeletedObject akol@contoso.edu -Password ConvertTo-SecureString -String 'Pa$$word1' -AsPlainText -Force -WindowsLiveID aylakol@contoso.edu

Top of page

Things to consider

  • If you try to recover the mailbox, and then you associate an existing Windows Live ID with the recovered mailbox, you may accidentally specify an unmanaged Windows Live ID. For more information about unmanaged Windows Live IDs, see Import or Evict Existing Microsoft IDs in Live@edu.

 
Related help topics
Loading...
No resources were found.