We use linked mailboxes within the company I work in as we’re too lazy to finish a AD/Exchange migration. Now as you’ll know linked mailboxes need to have a disabled mailbox in AD to work….
Well a while ago we needed to install Lync 2010 and being proactive we installed the Lync sever on the new domain…then we realised that Lync 2010 cant natively work with disabled accounts.
So having a butchers about on the Internet we found this script to enable disabled users in a certain OU to use Lync 2010. The script uses SIDMAP.WSF to synchronize the msExchMasterAccountSid attibute to the msRTCSIP-OriginatorSid attribute on the SIP-enabled disabled user account.
So just for clarity, SIP enable the account through the Lync 2010 control panel, then run this batch script:
cd\ cd "c:\Program Files\Microsoft Lync Server 2010\ResKit\LcsSync" wscript //h:cscript sidmap.wsf /OU:OU="SIDTEST,OU=Users,OU=Linked Mailboxes,OU=Exchange Users,OU=Users,OU=Newport,OU=Sites,DC=targetgroup,DC=corp,DC=local" /logfile:c:\sipmap.txt Pause