[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

A powershell command to restore a mailbox from RDB in exchange 2010 sp1?

Posted on 2011-10-11
7
Medium Priority
?
2,633 Views
Last Modified: 2012-05-12
Hi Guys,

I need a powershell command to restore a single mailbox from RDB in exchange 2010 sp1. I have created an RDB and it is currently unmounted. I am reluctant to try and mount the RDB on the live server...

Anyone can help?

Thanks
m
0
Comment
Question by:mk9
  • 4
  • 3
7 Comments
 
LVL 14

Expert Comment

by:Schnell Solutions
ID: 36948647

If the Identity of your sinble mailbox is "Example Mailbox" with an email address example@lab.com and the name of your recovery database is "RDB" you can use this CMDLet:

New-MaiboxRestoreRequest -SourceDatabase "RDB" -SourceStoreMailbox "Example Mailbox" -TargetMailbox example@lab.com



0
 

Author Comment

by:mk9
ID: 36948701
Doesnt like it, says New-MailboxRestoreRequest is not recognised as the name of a cmdlet
0
 
LVL 14

Expert Comment

by:Schnell Solutions
ID: 36949041

Hello Mk9,

It is absolutly a cmdlet in Exchange 2010, I use it all the time. Be aware that you are using the Exchange Management Shell and not PowerShell, notice also if there is an error when the Exchange Mangement Shell loads



0
Technology Partners: 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!

 

Author Comment

by:mk9
ID: 36949875
Still the same error. Could it be because the cmdlet in Exchange 2010 is pointing to C:\windows\system32 ?

Do i need to mount RDB first? if so, what are the implications of doig so?

thanks

m


0
 
LVL 14

Expert Comment

by:Schnell Solutions
ID: 36951907

It is normal that EMS loads pointing by default in C:\windows\system32, that is not a problem

Let's confirm than that module is available in your system, please, run this command and let me know the result

Get-Command *restore*

If the Exchange modules are loading correctly It shall appear a list of commands, including the recover function called "New-MailboxRestoreRequest"

If you don't see the command in the list, it means that the module is not charged in the console because an internal problem or because you don't have the correct permissions. EMC works based on Role Base Authentication, if you don't have the necessary permissions, the command won't appear for the used account

0
 

Author Comment

by:mk9
ID: 36954992
Thanks, schnellsolutions. Making progress, but the mailbox is very large. Is it possible just to recover the Sent Items folder? if so, could you please adjust the cmdlet below?

Restore-Mailbox -Identity "user" -RecoveryDatabase RecoverDC -RecoveryMailbox "user" -TargetFolder Restore

cheers

m
0
 
LVL 14

Accepted Solution

by:
Schnell Solutions earned 2000 total points
ID: 36961580

Yes, it is possible, you can add the switch "-IncludeFolders" and them specify the folder

You just need to complete your command like this...

Restore-Mailbox -Identity "user" -RecoveryDatabase RecoverDC -RecoveryMailbox "user" -TargetFolder Restore -IncludeFolders "\Sent Items"


 
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

The main intent of this article is to make you aware of ‘Exchange fail to mount’ error, its effects, causes, and solution.
This month, Experts Exchange sat down with resident SQL expert, Jim Horn, for an in-depth look into the makings of a successful career in SQL.
how to add IIS SMTP to handle application/Scanner relays into office 365.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Suggested Courses

872 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