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 -SourceMailboxCleanupOptio ns 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
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
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
the target database must be in the format exchvirserver\sg\md
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks Much. Moving the -identity jsmith to the position right after move-mailbox fixed the issue.
Thanks Again
Thanks Again