Home > Uncategorized > Download all the Profile Pictures through Powershell using Web Service

Download all the Profile Pictures through Powershell using Web Service


I got a request from my client to download all the profile pictures of users which is needed for some other team. We don’t have time to write code & move it to production that fast. Hence we are left with the option to download through webservice. Rest goes like this…

You can download the pictures based on the user rights who is downloading. Say if the user has ‘Manage Profiles‘ right on User Profile Service Application then you can browse the profiles by index. By using the approach you need to use ‘NextValue’ provided by ‘GetUserProfileByIndexResult’.  A better explanation is is given here http://markiwaszko.blogspot.com/2007/08/moss-getuserprofilebyindexint-index.html

You can download the powershell script here

The second option is if you don’t have rights on User Profile Service Application, which means you will not be able to use the method ‘GetUserProfileByIndex‘. In this case you need to have list of account names for which you need to download the pictures.

And the same can be downloaded from here

I wanted to use powershell because easy to execute & modify, no compilation is needed and any can see the code so less review effort. This time it was interesting to learn how to use webservices in powershell.

Categories: Uncategorized
  1. November 20, 2012 at 2:39 am

    Wonderful site. A lot of useful information here. I am sending it to some friends ans also sharing in delicious. And of course, thank you on your effort!

  1. No trackbacks yet.

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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

%d bloggers like this: