Quantcast
Channel: UC Administration Blog
Viewing all articles
Browse latest Browse all 327

How to show Photo on Lync 2013 client?

$
0
0










How to show Photo on Lync 2013 client?

Microsoft Lync Server 2010 provided the ability for users to view photos of their contacts (and to make their own photos available to others). Typically these photos were stored as part of the user's thumbnailPhoto attribute in Active Directory or public web site(however in Lync 2013 you cannot use URL to display the photo). That placed a serious limitation on the size and resolution of the photos: the thumbnailPhoto attribute can only hold a photograph with a maximum size of 48 pixels by 48 pixels.

However in Microsoft Lync Server 2013, photos can be stored in a user's Microsoft Exchange Server 2013 mailbox; that allows for photo sizes up to 648 pixels by 648 pixels. In addition to that, Exchange 2013 can automatically resize these photos for use in different products as needed. Typically that means three different photo sizes and resolutions:

·         48 pixels by 48 pixels, the size used for the Active Directory thumbnailPhotoattribute. If you upload a photo to Exchange 2013 Exchange will automatically create a 48 pixel by 48 pixel version of that photo and update the user's thumbnailPhoto attribute in AD. Note, however, that the reverse is not true: if you manually update the thumbnailPhoto attribute in Active Directory the photo in the user's Exchange 2013 mailbox will not automatically be updated.

·         96 pixels by 96 pixels, for use in Microsoft Outlook 2013 Web App, Microsoft Outlook 2013, Microsoft Lync Web App, and Lync 2013.

·         648 pixels by 648 pixels for use in Lync 2013 and Microsoft Lync Web App. 

How to upload the Photo in Exchange 2013 user profile?
High-resolution photos, which are accessed by using Exchange Web Services, can be uploaded by users who are running Outlook 2013 Web App; users are only allowed to update their own photo. Administrators, however, can update the photo for any user by using the Exchange Management Shell and a series of Windows PowerShell commands similar to the following.

$photo = ([Byte[]] $(Get-Content -Path "C:\data\balu.jpg" -Encoding Byte -ReadCount 0))

Set-UserPhoto -Identity "Balu Ilag" -PictureData $photo -Confirm:$False

Set-UserPhoto -Identity "Balu Ilag" -Save -Confirm:$False              

The first command in the preceding example uses the Get-Content cmdlet to read the contents of the file C:\data\balu.jpg and store that data in a variable named $photo. In the second command, the Exchange cmdlet Set-UserPhoto is used to upload the photo and attach that photo to Balu Ilag’s user account.
You can use different identity, like SMTP address or his or hers User Principal Name etc.

How to assign the Photo to user profile to show on Lync?
Uploading the photo does not equate to assigning that photo to Balu ilag’s user account. Instead, uploading the photo simply results in a preview of that photo to be displayed on the Outlook Web App Options page. To actually assign that photo to the user account the user must click Saveon the Options page or the administrator must execute the third command in the example. That third command uses the Save parameter to assign the photo to Balu Ilag’s user account:
Set-UserPhoto -Identity "Balu Ilag" -Save -Confirm:$False 

To verify that the new photo has been assigned to the user account, Balu Ilag’s can log on to Lync 2013, select Options, and then select My Picture. The newly-uploaded photo should be displayed as Balu's personal photo. Alternatively, administrators can verify the photo for any user by starting Internet Explorer and navigating to a URL similar to this:
https://name.domainname.com>/ews/Exchange.asmx/s/GetUserPhoto?email=baluilag@mydomain.com&size=HR648x648

 If the administrator can view the photo using Internet Explorer but the user cannot view his or her photo in Lync 2013 that typically indicates a connectivity problem with Exchange Web Services or with the Exchange autodiscover service.
Note, too that no additional configuration is required in order to make this photo available in Lync 2013. Instead, the photo will be instantly available after it has been uploaded and the Set-UserPhotocmdlet has been run.
Curtsey: Microsoft TechNet.

Thank you.

Viewing all articles
Browse latest Browse all 327

Trending Articles