Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to restore  a mailbox in O365

Posted on 2016-10-19
5
Medium Priority
?
253 Views
Last Modified: 2016-10-24
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
Comment
Question by:Ernesto Gallardo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 43

Expert Comment

by:Vasil Michev (MVP)
ID: 41850484
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
 

Author Comment

by:Ernesto Gallardo
ID: 41850753
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
 
LVL 43

Assisted Solution

by:Vasil Michev (MVP)
Vasil Michev (MVP) earned 2000 total points
ID: 41850819
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
 

Accepted Solution

by:
Ernesto Gallardo earned 0 total points
ID: 41850835
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
 

Author Closing Comment

by:Ernesto Gallardo
ID: 41856728
Tested it and it was succesfull
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to deal with a specific error when using the Enable-RemoteMailbox cmdlet to create a mailbox in the cloud-based service, for an existing user in an on-premises Active Directory.
One-stop solution for Exchange Administrators to address all MS Exchange Server issues, which is known by the name of Stellar Exchange Toolkit.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question