Solved

Unable to move-mailbox cross forest.

Posted on 2010-08-23
4
437 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
  • 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 500 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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
In this video we show how to create an Address List in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Organization >> Ad…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

776 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