Wednesday, May 15, 2013

Linked Mailbox Exchange 2010


The following script can be used to update Linked Mailbox (mxExchMasterAccountSID) value. 
Script
$SCDCred=get-credential
Import-CSV "D:\Scripts\inputCM.csv" | foreach {
$TsAMAccountName = "SIVADOM\" + $_.sAMAccountName
write-host Updating $_.sAMAccountName
    Set-mailbox $_.PEmail -EmailAddressPolicyEnabled $false
    set-mailbox $_.PEmail -LinkedMasterAccount $TsAMAccountName -LinkedDomainController houdc01.sivarajan.com -LinkedCredential $SCDCred
    }

No comments:

Post a Comment