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>
Thanks for the mention! Glad my post was useful, that is rare! 🙂
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)