Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- REM This is required until such time as Lync 2010 server is present in the environment
- @ECHO OFF
- REM Set a variable for use later
- SET regPath="HKCU\Software\Policies\Microsoft\Communicator"
- REM Force add the DisableServer check dword with value 0x00000001
- REG ADD %regPath% /v DisableServerCheck /t REG_DWORD /d 0x1 /f
- REM Force Lync to automatically download the address book
- REM By default Lync pics a random time between 1 and 60 minutes to sync the address book
- REG ADD %regPath% /v GalDownloadInitialDelay /t REG_DWORD /d 0 /f
- REM Delete the db and idx files otherwise Lync might wait up to 60 minutes
- REM to get the address book regardless of the above REG setting
- REM If you're on windows xp, uncomment the delete statements under the windows xp section
- REM Make sure to change the below lines to contain your domain name (email address)
- REM Windows XP
- REM DEL "%userprofile%\Local Settings\Application Data\Microsoft\Communicator\sip_%username%@domain.com\GalContacts.db"
- REM DEL "%userprofile%\Local Settings\Application Data\Microsoft\Communicator\sip_<username@domain>\GalContacts.db.idx"
- REM Windows Vista/7
- DEL "%userprofile%\AppData\Local\Microsoft\Communicator\sip_%username%@domain.com\GalContact.db"
- DEL "%userprofile%\AppData\Local\Microsoft\Communicator\sip_%username%@domain.com\GalContact.db.idx"
- ECHO Done.
- Exit
Add Comment
Please, Sign In to add comment