We help IT Professionals succeed at work.

Script connect mailbox in exchange 2010 sp1

We want to create script connect maibox in exchange 2010 with 2000 user, please instruct me do that.
Thanks.
Comment
Watch Question

Could you please be a bit more descriptive as to what you want to do please
Are you looking for a script to reconnect 2000 disconnected mailboxes in EXCH 2010???
Thành Huỳnh QuangIT Managed Service

Author

Commented:
We migrated Exchange 2007 to Exchange 2010 cross forest, and now we have account 2 forest in the same domain. We want to connect user existing to mailboxes which we migrated.
Example :
  Target domain (cdf.com): user u1
  Source domain  (abc.com):  user u.1 and email address u.1@abc.com
  I magrated mailboxes from abc.com to cdf.com and now i will connect use u1 (cdf.com) to mailbox u.1@abc.com, but i have more than 200 user, i want use script to run my job. Pls help me create csv file to run script and create script to do that.
Thanks.
Thành Huỳnh QuangIT Managed Service

Author

Commented:
Yes, I need script to reconnect mailbox and how to csv file to run script.
I generally work on small business servers and have come across similar situations but scripting is not what i have tried earlier.

See if this helps in any ways:

http://blogs.technet.com/b/sbs/archive/2009/05/01/sbs-2003-to-sbs-2008-migration-to-a-different-domain-name.aspx

the article is for SBS but read the exchange part and it should be fine for the Std. environment too.

Will look for the script and let you know if i get one.
Thành Huỳnh QuangIT Managed Service

Author

Commented:
The article very good but not appropriate with may issue. Because in source forest i have mailboxes exitsing and i no need create it in target forest, i need only merge between user in target domain with source mailboxes after migrated success.
Thành Huỳnh QuangIT Managed Service

Author

Commented:
Hi there,anything update ?
Commented:
I don't have the scenario to test myself but try the following: (remember -whatif switch)

Textfile:
Aisha.Bhari
Andrew.O'Grady
Denise.Dartnell
Garth.Gibbons
Harinder.Rahman
Jagir.Ward
Jas.Dowden
Joanna.Hughes

Syntax:
C:\>Get-Content C:\Admin\users.txt | Move-Mailbox -TargetDatabase -TargetDatabase "Target Server\First Storage Group\Mailbox Database" -Confirm:$false