Script Connect-Mailbox help
Hi all,
domain A (resource forest) and domain B (account forest)
in domain A, exchange SP2 : ex: domain name: A user logon account: sam1 User dispaly name: D1 exchange server name: mail
in domain B: ex: dommain name: B user logon account: A1
Connect-Mailbox -Identity "D1" -Database 'mail.a.local\1st Storage Group\Mailbox Database' -User 'A\sam1' -Alias 'A1' -LinkedDomainController 'dc1.b.local' -LinkedMasterAccount 'B\A1' -LinkedCredential $credential
I need to do this for 800 users and I thought I create the txt file with sourcedisplayName, Database, sourcelogon, Alias, linkedmasteraccount then use excel to create 800 above lines.
Connect-Mailbox -Identity "D1" -Database 'mail.a.local\1st Storage Group\Mailbox Database' -User 'A\sam1' -Alias 'A1' -LinkedDomainController 'dc1.b.local' -LinkedMasterAccount 'B\A1' -LinkedCredential $credential
Connect-Mailbox -Identity "D2" -Database 'mail.a.local\1st Storage Group\Mailbox Database' -User 'A\sam2' -Alias 'A2' -LinkedDomainController 'dc1.b.local' -LinkedMasterAccount 'B\A2' -LinkedCredential $credential
------
Is there a better way to script with powershell?
Thank you.
Is there a easy
November 17th, 2010 11:53am