?
Solved

Unable to move-mailbox cross forest.

Posted on 2010-08-23
4
Medium Priority
?
441 Views
Last Modified: 2012-05-10
Hi,
 I am using the following below, but keep getting an error of:
Move-Mailbox : A parameter cannot be found that matches parameter name '-'.
At line:1 char:13

I believe my credentials are fine as I can issue the command below for both source and target servers.  
Get-Mailbox -DomainController server.domain.com -Credential $S -Identity jsmith

Move-Mailbox -TargetDatabase "mailcluster\First Storage Group\Mailbox Database" -Identity jsmith -GlobalCatalog target.domain.com -SourceForestGlobalCatalog source.domain.com -NTAccountOU "OU=Users,DC=domain,DC=com" -SourceForestCredential $S -TargetForestCredential $t -DomainController source.domain.com -SourceMailboxCleanupOptions none -PreserveMailboxSizeLimit -IgnorePolicyMatch

I’m guessing it cannot read my database on the target server.  I tried using both the mailcluster name and the actually server names.  

Thanks
David
0
Comment
Question by:dross333
[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
  • 2
  • 2
4 Comments
 
LVL 32

Expert Comment

by:endital1097
ID: 33506819
the target database must be in the format exchvirserver\sg\md

0
 

Author Comment

by:dross333
ID: 33506898
it Is

here is the path I am using in my original  post.
mailcluster\First Storage Group\Mailbox Database

real servers are exch01 and exch02

0
 
LVL 32

Accepted Solution

by:
endital1097 earned 2000 total points
ID: 33507053
yes, i was confirming your statement
first glance your syntax looks good and I don't see anything that stands out

does the error show the >> before the -TargetDatabase

i would try move-mailbox jsmith -targetdatabase...
0
 

Author Closing Comment

by:dross333
ID: 33510996
Thanks Much.  Moving the -identity jsmith to the position right after move-mailbox fixed the issue.

Thanks Again
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

How to resolve IMCEAEX NDRs in Exchange or Exchange Online related to invalid X500 addresses.
Unified and professional email signatures help maintain a consistent company brand image to the outside world. This article shows how to create an email signature in Exchange Server 2010 using a transport rule and how to overcome native limitations …
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…
This video discusses moving either the default database or any database to a new volume.
Suggested Courses

762 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