Link to home
Start Free TrialLog in
Avatar of dross333
dross333

asked on

Unable to move-mailbox cross forest.

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
Avatar of endital1097
endital1097
Flag of United States of America image

the target database must be in the format exchvirserver\sg\md

Avatar of dross333
dross333

ASKER

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

ASKER CERTIFIED SOLUTION
Avatar of endital1097
endital1097
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks Much.  Moving the -identity jsmith to the position right after move-mailbox fixed the issue.

Thanks Again