Subscribe to Windows IT Pro
August 21, 2011 01:00 AM

Q: How can I force all Lync clients to use the photo from Active Directory?

Windows IT Pro
InstantDoc ID #140210
Rating: (0)
A: Normally, users can select if they want to use the picture from AD, a user-selected picture, or no picture. If you want to stop users being able to change their own picture, and prefer the AD picture is always used, just create a Lync policy to force the AD picture to be used.

Launch the Lync Server Management Shell, then run the following commands:

1. Create a new policy first:

New-CsClientPolicy -Identity ForceADPictures

2. Now set the DisplayPhoto policy to use the AD picture:

Set-CsClientPolicy -Identity ForceADPictures -DisplayPhoto PhotosFromADOnly

3. Finally, apply the policy to users:

Get-CSADUser -OU "CN=Users,DC=savilltech,DC=net" | Grant-CsClientPolicy -PolicyName ForceADPictures

Related Content:

ARTICLE TOOLS

Comments
  • rimmella
    8 months ago
    Sep 30, 2011

    Hi John, Thanks for your article.

    I'm having trouble with the final step in this process.

    3. Finally, apply the policy to users:
    Get-CSADUser -OU "CN=Users,DC=savilltech,DC=net" | Grant-CsClientPolicy -PolicyName ForceADPictures

    I launched the Lync Server Management Shell and updated the command in step 3 to reflect my specific domain as "domain.local", but I think the problem is that my users are not in the default "Users" OU in AD. Also, I've broken out my AD into sites (such as NY, CA, etc.) so I have multiple "Users" OU's (1 "User" OU under each site).

    The error I get is:
    Get-CsAdUser : Management object not found for identity "CN=Domain Users,CN=Users,CN=New_York,CN=Sites,DC=domain,DC=local".

    I'm curious if (1) you can assist with the problem I'm having, and (2) if we get this working, will I need to apply the command to every sub "Users" OU I have in my AD?

    Thanks,
    Rob

You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.