Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 314
  • Last Modified:

How to restore a mailbox in O365

I had a mailbox used as Voice mailbox in O365. Is no longer there. But if you do Get-Mailbox -SoftDeletedMailbox then it will show the mailbox with this data:
Name                      Alias                ServerName       ProhibitSendQuota

I need to restore this mailbox and can;t see the GUID for it.

Thanks,
0
Ernesto Gallardo
Asked:
Ernesto Gallardo
  • 3
  • 2
2 Solutions
 
Vasil Michev (MVP)Commented:
How did you delete the mailbox? In general, if it's visible in the soft-deleted container, you should be able to recover it immediately by recovering/licensing the user or using the Undo-SoftDeletedMailbox  cmdlet.. If something happened with the user object, you will have to use the New-MailboxRestoreRequest  cmdlet instead. Details are here: https://technet.microsoft.com/en-us/library/dn186233(v=exchg.150).aspx
0
 
Ernesto GallardoAuthor Commented:
I don't know how it got deleted.  If I do the undo , it gives the following error:
Undo- : The term 'Undo-' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a
path was included, verify that the path is correct and try again.
At line:1 char:1
+ Undo- SoftDeletedMailbox ace-pbg@barry.edu -WindowsLiveID ace-pbg@bar ...
+ ~~~~~
    + CategoryInfo          : ObjectNotFound: (Undo-:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

I'm on a Hybrid scenario, so
when I do :
Get-Mailbox -SoftDeletedMailbox

I get:
Name                                      Alias                   ServerName                  ProhibitSendQuota
----                                           -----                      ----------                               -----------------
ACE - PBG Voice Mailbox   ace-pbg              bn6pr07mb2771          49.5 GB (53,150,220,288 bytes)

Then According to that link I should do:

New-MailboxRestoreRequest -SourceMailbox <GUID from above step> -TargetMailbox <GUID from >
 I don't see the "GUID"
So I can't continue from here....
0
 
Vasil Michev (MVP)Commented:
You have a space after Undo-, should be a single word (Undo-SoftDeletedMailbox) there.

To get the GUID, use this:

Get-Mailbox -SoftDeletedMailbox | fl Name,Alias,ExchangeGuid

Open in new window

0
 
Ernesto GallardoAuthor Commented:
Hi Vasil ,
Thanks, I didn't noticed that, anyway I used the solution given in this URL:
http://social.technet.microsoft.com/wiki/contents/articles/32984.recover-soft-deleted-mailbox-in-exchange-online.aspx
But yours should be good too.
THank you!!!
I'll see you in my next one....
0
 
Ernesto GallardoAuthor Commented:
Tested it and it was succesfull
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now