SharePoint 2010 User Profile Photo not updating

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
http://<YourServerName>/my

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 crenstrom.blogpost.com talks on how they did it:

 To setup the script as a scheduled task I used http://get-spscripts.com/2011/01/running-sharepoint-powershell-script.html 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>

About: Marijn

Marijn Somers (MVP) has over 14 years experience in the SharePoint world, starting out with SP2007. Over the years the focus has grown to Office 365, with a focus on collaboration and document management. He is a business consultant at Balestra and Principal Content Provider for "Mijn 365 Coach" that offers dutch employee video training. His main work tracks are around user adoption, training and coaching and governance. He is also not afraid to dig deeper in the technicalities with PowerShell, adaptive cards or custom formatting in lists and libraries. You can listen to him on the biweekly "Office 365 Distilled" podcast.


2 thoughts on “SharePoint 2010 User Profile Photo not updating”

  1. Hello there,
    thank you for keeping up. After doing this, all the pics are well synced from AD into Sharpeoint Mysite, & appears on users’ profile, but in search we can’t see these pictures for some of the users (most actually)

Leave a Reply

Your email address will not be published. Required fields are marked *