Second Life of a Hungarian SharePoint Geek

August 10, 2010


  1. Hey,

    Thanks for providing me the link. I have published your comment on my website. This is really good work. I appreciate your effort


    Comment by Chaitu — August 10, 2010 @ 13:44

  2. I’m new to SP2010 and uploading web parts. I’ve browsed to, and selected ProfilePhotoSyncWebPart.webpart. I can now see it under the Imported Web Parts category but when I try to Add it, I get the following message:


    Any ideas? Do I need to copy the contents of the zip files somewhere?

    Thank you.

    Comment by Rory Schmitz — September 15, 2010 @ 18:41

  3. Hi,
    why don’t just let the user add a picture on his Profile Page under My Sites, and add an export connection for the Picture property to thumbnailPhoto?

    Comment by audun — October 8, 2010 @ 09:40

  4. […] Active Directory – SharePoint profile user image synchronization By Peter Holpar In my former post I’ve illustrated how to synchronize user images between AD and SharePoint using a custom web part […]

    Pingback by Creating a timer job for Active Directory – SharePoint profile user image synchronization « Second Life of a Hungarian SharePoint Geek — November 17, 2010 @ 02:40

  5. Howcome you dont use the OOB PowerShell cmdlet to create the thumbnails in your User Photos librart on my site host?

    Update-SPProfilePhotoStore -MySiteHostLocation http://my -CreateThumbnailsForImportedPhotos $true

    The thumbnail parameter was added in a later CU (not sure which)

    Comment by Anders Rask — May 17, 2011 @ 12:17

    • Hi Anders,

      Well, there are several reasons for that. First, if you check the date of this post that is August, and the method you suggested requires the October Cumulative Update (at least, based on the info I found here
      Import User Profile Photos from Active Directory into SharePoint 2010).

      Second, as you can see, the method described here enables two-way synchronization between AD and SharePoint, not import only. AFAIS this cmdlet using the parameters as you suggested does nothing more than generates the thumbnails that are imported as part of the OOB AD to SP user profile synchronization.

      If you read my posts here you see I primarily work with custom code development, and the method described in this post enables creating custom solutions. Furthermore, the web part enables self service for users to upload and change their photo from the web browser, typically not the case for PowerShell cmdlets. In the beginning of the post I wrote exactly that my goal was to create a tool that makes it possible for users to set their Active Directory / Outlook photo from a web UI. Your comment would probably apply better to my former post that is after all about creating a custom command line admin tool (see it here: How to upload a user profile photo programmatically), although I feel my post is still a better example to upload programatically (as its title says) than the one that uses a cmdlet, that I feel rather an admin tool. To tell the truth, I don’t see how one could use the cmdlet to upload images from the file system (or from any arbitrary byte stream source, like SQL, or the binary thumbnailPhoto AD property ) however using the code illustrated in my former post it is possible.

      And last but not least, I was not aware of this PowerShell cmdlet, so thanks for sharing that with the readers and me. If my time allows, I will check the source of the cmdlet to see how it work. Hopefully I will learn new techniques from that.


      Comment by Peter Holpar — May 17, 2011 @ 16:33

  6. Excellent app, works a treat.. I have a question though that was raised by HR and IT
    If I need to for any reason delete all the thumbnailPhoto for every user in AD how could I go about that ?

    Comment by dan — May 26, 2011 @ 02:24

  7. Any idea if this works in SharePoint online?

    Comment by Shawn — August 31, 2012 @ 15:51

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Blog at

%d bloggers like this: