Solved

Unable to move-mailbox cross forest.

Posted on 2010-08-23
4
435 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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Easy CSR creation in Exchange 2007,2010 and 2013
Find out how to use Active Directory data for email signature management in Microsoft Exchange and Office 365.
In this video we show how to create a Resource Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: Navigate to the Recipients >> Resources tab.: "Recipients" is our default selection …
how to add IIS SMTP to handle application/Scanner relays into office 365.

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now