Pages

Tuesday, February 19, 2013

Forcing Lync 2013 client to download address book

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.

image

Then for the following respective clients do the following:

Lync 2010

Log off of the Lync client and delete the profile from:

%userprofile%\AppData\Local\Microsoft\Communicator

… 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 HKLM\Software\Policies\Microsoft\Communicator /v GalDownloadInitialDelay /t REG_DWORD /d 0 /f

clip_image001

Lync 2013

Log off of the Lync client and delete the profile from:

%userprofile%\appdata\Local\Microsoft\Office\15.0\Lync

… 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 HKLM\Software\Policies\Microsoft\Office\15.0\Lync /v GalDownloadInitialDelay /t REG_DWORD /d 0 /f

clip_image001[4]

24 comments:

Eduardo said...

worked great!, Thanks for the tip, sometimes this address book service is painful for deployment!

Anonymous said...

Brilliant, cheers Terence

Åge Monrad said...

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

Anonymous said...

Thanks - worked great!

Klauss Arangua said...

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

Anonymous said...

it works perfectly! Thanks Terence!

Anonymous said...

works great...

Anonymous said...

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%\appdata\Local\Microsoft\Office\15.0\Lync\sip_%USERNAME%@yourcompany.com"

reg add HKLM\Software\Policies\Microsoft\Office\15.0\Lync /v GalDownloadInitialDelay /t REG_DWORD /d 0 /f

"C:\Program Files (x86)\Microsoft Office\Office15\lync.exe"

Ivan Versluis said...

Thank you so much. Worked and I am happy now to find new users.

Anonymous said...

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%\appdata\Local\Microsoft\Office\15.0\Lync\sip_%USERNAME%@YOURDOMAINHERE"

reg add HKLM\Software\Policies\Microsoft\Office\15.0\Lync /v GalDownloadInitialDelay /t REG_DWORD /d 0 /f

start /d "C:\Program Files (x86)\Microsoft Office\Office15\" lync.exe

ping -n 10 127.0.0.1 > nul

start /d "C:\Program Files (x86)\Mitel\MiVoice\" PlugInWatcher.exe

Ahmad Assraf said...

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.

Anonymous said...

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 \Setup\amd64\Setup)
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

Anonymous said...

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.

Unknown said...

Worked For Me , good job

Anonymous said...

It doesn't work for me.
too sad..

Anonymous said...

REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Communicator" /v "GalDownloadInitialDelay" /t REG_DWORD /d "00000000" /f
REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Lync" /v "GalDownloadInitialDelay" /t REG_DWORD /d "00000000" /f
REG ADD "HKEY_CURRENT_USER\Software\Policies\Microsoft\Communicator" /v "GalDownloadInitialDelay" /t REG_DWORD /d "00000000" /f
REG ADD "HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\15.0\Lync" /v "GalDownloadInitialDelay" /t REG_DWORD /d "00000000" /f
REG ADD "HKEY_CURRENT_USER\SOFTWARE\Wow6432Node\Microsoft\Communicator" /v "GalDownloadInitialDelay" /t REG_DWORD /d "00000000" /f
REG ADD "HKEY_CURRENT_USER\SOFTWARE\Wow6432Node\Microsoft\Office\15.0\Lync" /v "GalDownloadInitialDelay" /t REG_DWORD /d "00000000" /f
REG ADD "HKEY_CURRENT_USER\SOFTWARE\Wow6432Node\Policies\Microsoft\Communicator" /v "GalDownloadInitialDelay" /t REG_DWORD /d "00000000" /f
REG ADD "HKEY_CURRENT_USER\SOFTWARE\Wow6432Node\Policies\Microsoft\Office\15.0\Lync" /v "GalDownloadInitialDelay" /t REG_DWORD /d "00000000" /f
REG ADD "HKEY_LOCAL_MACHINE\Software\Microsoft\Communicator" /v "GalDownloadInitialDelay" /t REG_DWORD /d "00000000" /f
REG ADD "HKEY_LOCAL_MACHINE\Software\Microsoft\Office\15.0\Lync" /v "GalDownloadInitialDelay" /t REG_DWORD /d "00000000" /f
REG ADD "HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Communicator" /v "GalDownloadInitialDelay" /t REG_DWORD /d "00000000" /f
REG ADD "HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Office\15.0\Lync" /v "GalDownloadInitialDelay" /t REG_DWORD /d "00000000" /f
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Communicator" /v "GalDownloadInitialDelay" /t REG_DWORD /d "00000000" /f
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\15.0\Lync" /v "GalDownloadInitialDelay" /t REG_DWORD /d "00000000" /f
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Policies\Microsoft\Communicator" /v "GalDownloadInitialDelay" /t REG_DWORD /d "00000000" /f
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Policies\Microsoft\Office\15.0\Lync" /v "GalDownloadInitialDelay" /t REG_DWORD /d "00000000" /f

Anonymous said...

This would indeed be nice features..thanks. visit- Skype support.

Anonymous said...

worked great for an end user running Lync with Ignite. Thanks a bunch

Anonymous said...

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~

Anonymous said...

Thank you for this Fix. It works everytime :)

Sanz said...

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.

Michael said...

Thank you so much, worked instantly.

Unknown said...

thank you so much it's works.
Can i reblog this?
I will include the link of the source

Tar said...

I faced the same issue and it really helped me and when i first faced forcing lync 2013 client to download address quickly.