Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using restore-mailbox

Status
Not open for further replies.
Sep 20, 1999
3,824
US
Ok, I need another pair of eyes here.

A mailbox database called Mbox4 from a storage group called SG4 is restored to an RSG. In the RSG it's known as Mbox4, naturally.

Now I'm trying to merge the contents of one user in the mounted db into that same users mailbox on the production db. Here's the script I used first:

Code:
restore-mailbox -id jsmith -rsgdatabase "exchng07\Recovery Storage Group\Mbox4" -rsgmailbox jsmith -targetfolder RecoverContacts -IncludeFolders \Contacts

When I do that, these are the results:

Restore-Mailbox : The specified mailbox "jsmith" does not exist on database "exch
ng07\recovery storage group\Mbox4".
At line:1 char:16
+ restore-mailbox <<<< -id jsmith -rsgdatabase "exchng07\recovery storage gro
up\Mbox4" -rsgmailbox jsmith -targetfolder RecoverContacts -IncludeF
olders \Contacts

So I decide to lose the long database name and try this:

Code:
restore-mailbox -id jsmith -rsgdatabase Mbox4 -rsgmailbox jsmith -targetfolder RecoverContacts -IncludeFolders \Contacts

And that gives me this:

The specified mailbox database "Exchng07.corp.com\Mbox4" is not
unique.
At line:1 char:1
+ r <<<< estore-mailbox -id jsmith -rsgdatabase Mbox4 -rsgmailbox jsmith -targetfolder RecoverContacts -IncludeFolders \Contacts

Of course it's not unique, since there's also a mailbox data base with the same name in another storage group! So how do I properly differentiate?

I did a successful test copy/merge from the Recovery Console Tool, so I know that all the objects are in place, but I have to use the EMS because I want to customize more that the console will allow.

TIA

Dave Shackelford
ThirdTier.net
 
Are you sure you're looking at the right database and mailbox combination? It's not complaining about the database not existing - just the mailbox on that database.

Pat Richard MVP
Plan for performance, and capacity takes care of itself. Plan for capacity, and suffer poor performance.
 
Ok, I resolved this. For the -Identity and -RSGMailbox parameters, I had to use the complete LDAP name for the user:

"/o=Company/ou=First Administrative Group/cn=Recipients/cn=jsmith"

I couldn't just use "jsmith" for some reason. Not sure why exactly.

Dave Shackelford
ThirdTier.net
 
Was just reading this and was going to post use the domain\name format for identity so powershell knows you are refering to a account name and not a alias etc.

If there is similar mail aliases or AD names for different users that what happens.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top