Moving mailboxes across forests

Hello, we are getting rid of our clients current domain and setting them up on a completely new domain. We want to be able to move all of the mailboxes from the old server (which is on the old domain running exchange 2003) to the new server (which is on the new domain running exchange 2007) by using the move mailbox commandlet on the exchange 2007 server.

My command gives me the following error: Move-Mailbox : A parameter cannot be found that matches parameter name '-'. At Line:1 char:13.

It looks like my syntax is correct. Here is my syntax below:

[PS] C:\Windows\System32>Move-Mailbox -TargetDatabase "<servername>\First Storage Gro
up\Mailbox Database" -Identity Administrator -GlobalCatalog server.domain.lo
cal - SourceForestGlobalCatalog server.domain.com - SourceForestC
redential $SourceCredential -TargetForestCredential $TargetCredential

Please Help
StarfishTechAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sb18_exchangeCommented:
Try this one and let me know if it errors.

move-Mailbox -Identity Administrator -<YourDomaincontroller> -Globalcatelog GlobalCatalog server.domain.local  -TargetDatabase "<servername>\First Storage Gro
up\Mailbox Database" TargetForestCredential $TargetCredential
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.