One of the tricks I use most over the years while working or troubleshooting issues with OCS and Lync was to manually force the Lync 2010 and 2013 client because waiting for the address book to download can take quite a bit of time. As I don’t live and breath Lync as I did 2 years ago, this post serves as something I can quickly refer to in the future.
To force Lync Server 2013 to update the address book, execute the following cmdlet:
Update-CsAddressBook
Wait for the LS Address Book Server event to report event ID 21056 listing the:
Synchronization Pass Summary.
Then for the following respective clients do the following:
Lync 2010
Log off of the Lync client and delete the profile from:
%userprofile%AppDataLocalMicrosoftCommunicator
… then execute the following command in the command prompt to add the registry that forces the Lync client to immediately download the address book:
reg add HKLMSoftwarePoliciesMicrosoftCommunicator /v GalDownloadInitialDelay /t REG_DWORD /d 0 /f
Lync 2013
Log off of the Lync client and delete the profile from:
%userprofile%appdataLocalMicrosoftOffice15.0Lync
… then execute the following command in the command prompt to add the registry that forces the Lync client to immediately download the address book:
reg add HKLMSoftwarePoliciesMicrosoftOffice15.0Lync /v GalDownloadInitialDelay /t REG_DWORD /d 0 /f
24 Responses
worked great!, Thanks for the tip, sometimes this address book service is painful for deployment!
Brilliant, cheers Terence
Hi
Is it possible to let Lync server lookup phonenumbers in AD instead of exporting AD phonenumbers to Lync database now and then?
If so – how?
Kind regards
Aage Monrad
amon@ucsyd.dk
Thanks – worked great!
Hi,
Is there a way for lync to use a different address book? I have over 1000 contacts. Microsoft tells me I have to add each contact manually in order to see their online status. I'm trying to eliminate redundancy and use lync for my online meetings. I'm using Skype and I can see all contacts there, including the ones that are using lync after I connected my Microsoft account with Skype. I can't do the same thing with Lync. I really don't want to be requesting all of my contacts to add me with a different email address. Can you help me?
Best regards,
Klauss
it works perfectly! Thanks Terence!
works great…
I created a batch file to do this automatically. Basically, it kills any instance of Lync, waits five seconds (that's the ping), deletes the profile folder, runs the registry edit, and starts Lync again. Make sure you run this as administrator.
Also, you may need to change file paths as well as the user profile folder for Lync depending on how you name your users.
taskkill /f /im lynchtmlconv.exe
taskkill /f /im UcMapi.exe
taskkill /f /im lync.exe
ping -n 5 127.0.0.1 > nul
rmdir /s /q "%userprofile%appdataLocalMicrosoftOffice15.0Lyncsip_%USERNAME%@yourcompany.com"
reg add HKLMSoftwarePoliciesMicrosoftOffice15.0Lync /v GalDownloadInitialDelay /t REG_DWORD /d 0 /f
"C:Program Files (x86)Microsoft OfficeOffice15lync.exe"
Thank you so much. Worked and I am happy now to find new users.
If you have the MiVoice Add-on for Lync, use this script.
taskkill /f /im lynchtmlconv.exe
taskkill /f /im UcMapi.exe
taskkill /f /im lync.exe
taskkill /f /im MiVoiceLync.exe
taskkill /f /im PlugInWatcher.exe
ping -n 5 127.0.0.1 > nul
rmdir /s /q "%userprofile%appdataLocalMicrosoftOffice15.0Lyncsip_%USERNAME%@YOURDOMAINHERE"
reg add HKLMSoftwarePoliciesMicrosoftOffice15.0Lync /v GalDownloadInitialDelay /t REG_DWORD /d 0 /f
start /d "C:Program Files (x86)Microsoft OfficeOffice15" lync.exe
ping -n 10 127.0.0.1 > nul
start /d "C:Program Files (x86)MitelMiVoice" PlugInWatcher.exe
Hi,
Is this working to update for a response group agent.
Cause our client cant find 1 response group name when they tried to search.
Thanks.
My situation was somewhat different but running Test-CsAddressBookService would fail with error:
'The remote server returned an error: (404) Not Found.'
All clients were unable to retrieve contact unless the full sip address was entered.
Environment.
Server: Lync2013 STD
Client: Lync2010
Did the following:
Checked replication under the Topology tab in CSCP- mine had a green check.
Reinstalled .net 4.5 via add/remove programs
Registed .net by running the following from an elevated cmd (run from .net folder) : aspnet_regiss.exe -I
uninstalled Lync webcomponents from add/remove programs
From Lync install media- reinstalled webcomponents.msi (browse to Setupamd64Setup)
Checked IIS>Application Pool and ensured all ASP.NET and Lync components are set to v4.0 of the .Net Framework Version
Launched the Lync setup and reran step 2: Stetup or Remove Lync Server Components.
Reran Test-CsAddressBookService: successful
Tested Lync client: Successful
Is there a way to back out this regsitry entry? I have tried deleting the key but that did not work. After some other research I found a permanent fix and now all users can search with no problem and since running the setting, I am now unable to get full results while everyone else searches just fine.
Worked For Me , good job
It doesn't work for me.
too sad..
REG ADD "HKEY_CURRENT_USERSoftwareMicrosoftCommunicator" /v "GalDownloadInitialDelay" /t REG_DWORD /d "00000000" /f
REG ADD "HKEY_CURRENT_USERSoftwareMicrosoftOffice15.0Lync" /v "GalDownloadInitialDelay" /t REG_DWORD /d "00000000" /f
REG ADD "HKEY_CURRENT_USERSoftwarePoliciesMicrosoftCommunicator" /v "GalDownloadInitialDelay" /t REG_DWORD /d "00000000" /f
REG ADD "HKEY_CURRENT_USERSoftwarePoliciesMicrosoftOffice15.0Lync" /v "GalDownloadInitialDelay" /t REG_DWORD /d "00000000" /f
REG ADD "HKEY_CURRENT_USERSOFTWAREWow6432NodeMicrosoftCommunicator" /v "GalDownloadInitialDelay" /t REG_DWORD /d "00000000" /f
REG ADD "HKEY_CURRENT_USERSOFTWAREWow6432NodeMicrosoftOffice15.0Lync" /v "GalDownloadInitialDelay" /t REG_DWORD /d "00000000" /f
REG ADD "HKEY_CURRENT_USERSOFTWAREWow6432NodePoliciesMicrosoftCommunicator" /v "GalDownloadInitialDelay" /t REG_DWORD /d "00000000" /f
REG ADD "HKEY_CURRENT_USERSOFTWAREWow6432NodePoliciesMicrosoftOffice15.0Lync" /v "GalDownloadInitialDelay" /t REG_DWORD /d "00000000" /f
REG ADD "HKEY_LOCAL_MACHINESoftwareMicrosoftCommunicator" /v "GalDownloadInitialDelay" /t REG_DWORD /d "00000000" /f
REG ADD "HKEY_LOCAL_MACHINESoftwareMicrosoftOffice15.0Lync" /v "GalDownloadInitialDelay" /t REG_DWORD /d "00000000" /f
REG ADD "HKEY_LOCAL_MACHINESoftwarePoliciesMicrosoftCommunicator" /v "GalDownloadInitialDelay" /t REG_DWORD /d "00000000" /f
REG ADD "HKEY_LOCAL_MACHINESoftwarePoliciesMicrosoftOffice15.0Lync" /v "GalDownloadInitialDelay" /t REG_DWORD /d "00000000" /f
REG ADD "HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMicrosoftCommunicator" /v "GalDownloadInitialDelay" /t REG_DWORD /d "00000000" /f
REG ADD "HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMicrosoftOffice15.0Lync" /v "GalDownloadInitialDelay" /t REG_DWORD /d "00000000" /f
REG ADD "HKEY_LOCAL_MACHINESOFTWAREWow6432NodePoliciesMicrosoftCommunicator" /v "GalDownloadInitialDelay" /t REG_DWORD /d "00000000" /f
REG ADD "HKEY_LOCAL_MACHINESOFTWAREWow6432NodePoliciesMicrosoftOffice15.0Lync" /v "GalDownloadInitialDelay" /t REG_DWORD /d "00000000" /f
This would indeed be nice features..thanks. visit- Skype support.
worked great for an end user running Lync with Ignite. Thanks a bunch
probably many dependencies in the following that happen to be in place on my network but here's a weird one that works for lync 2013 on-premise
open OUTLOOK, go to file, Account Settings, Download Address Book (from the dropdown arrow).
Have used this blog many times, hope this in some way contributes back~
Thank you for this Fix. It works everytime 🙂
An alternative option is disable the client local catalog and use the server catalog directly. To do that use the command Set-CsClientPolicy -AddressBookAvailability WebSearchOnly (the default is WebSearchAndFileDownload). I made that and my search problems finished.
Thank you so much, worked instantly.
thank you so much it's works.
Can i reblog this?
I will include the link of the source
I faced the same issue and it really helped me and when i first faced forcing lync 2013 client to download address quickly.