SharePoint 2010 User Profile Photo not updating

January 3rd, 2013 | Posted by Marijn in sharepoint 2010 | technical

Newyear. The perfect time to launch a new intranet at the customer. Everything in place, pages polished, documents uploaded, profiles linked with AD and pictures of everyone added so they are visible in Outlook, Lync and … not SharePoint ? We added the profilesync and the picture location, but a lot of the profile images were not visible. Why is our SharePoint 2010 User Profile Photo not updating even after a full profile sync ?

Luckily, a quick search on the internet got me to this post from Adam Preston.

Launch the SharePoint 2010 Management Shell (Start > All Programs > Microsoft SharePoint 2010 Products > SharePoint 2010 Management Shell) and run the following command:

Update-SPProfilePhotoStore -CreateThumbnailsForImportedPhotos 1 -MySiteHostLocation

Just change “htt://YourServerName/my” to the location of your My Site host.

After you enter this command, everything is fixed! Apparently, the problem has something to do with the automatic resizing of images.

If you want to put this in a script as a scheduled task, this blog talks on how they did it:

 To setup the script as a scheduled task I used as a guide. I created the script in notepad, saved it as a PS1 file, and setup the scheduled task.

Script text:
Add-PSSnapin Microsoft.SharePoint.PowerShell -erroraction SilentlyContinue
Update-SPProfilePhotoStore -CreateThumbnailsForImportedPhotos 1 -MySiteHostLocation <My Sites host location url>

You can follow any responses to this entry through the RSS 2.0 You can leave a response, or trackback.

2 Responses

Leave a Reply

%d bloggers like this: