Guest User

Untitled

a guest
Jan 22nd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. REM This is required until such time as Lync 2010 server is present in the environment
  2. @ECHO OFF
  3.  
  4. REM Set a variable for use later
  5. SET regPath="HKCU\Software\Policies\Microsoft\Communicator"
  6.  
  7. REM Force add the DisableServer check dword with value 0x00000001
  8. REG ADD %regPath% /v DisableServerCheck /t REG_DWORD /d 0x1 /f
  9.  
  10. REM Force Lync to automatically download the address book
  11. REM By default Lync pics a random time between 1 and 60 minutes to sync the address book
  12. REG ADD %regPath% /v GalDownloadInitialDelay /t REG_DWORD /d 0 /f
  13.  
  14. REM Delete the db and idx files otherwise Lync might wait up to 60 minutes
  15. REM to get the address book regardless of the above REG setting
  16. REM If you're on windows xp, uncomment the delete statements under the windows xp section
  17. REM Make sure to change the below lines to contain your domain name (email address)
  18.  
  19. REM Windows XP
  20. REM DEL "%userprofile%\Local Settings\Application Data\Microsoft\Communicator\sip_%username%@domain.com\GalContacts.db"
  21. REM DEL "%userprofile%\Local Settings\Application Data\Microsoft\Communicator\sip_<username@domain>\GalContacts.db.idx"
  22.  
  23. REM Windows Vista/7
  24. DEL "%userprofile%\AppData\Local\Microsoft\Communicator\sip_%username%@domain.com\GalContact.db"
  25. DEL "%userprofile%\AppData\Local\Microsoft\Communicator\sip_%username%@domain.com\GalContact.db.idx"
  26.  
  27. ECHO Done.
  28. Exit
Add Comment
Please, Sign In to add comment