Updating Pictures from PictureLibrary to each individual mysite-sharepoint

Created PictureLibrary with 10 pictures belonging to each user now i want to update these into respective mysite everyday.

Is there any possibility? please let me know.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Philx1234567Author Commented:
Each person has one picture and want to move this picture into mysite?
The photo for every user profile is stored in the PictureURL field. You can set it to whatever you want. I use Powershell. Below is sample code
function Get-SPProfileManager([string]$PortalURL)
# Need to get a PortalContext object 
# as we do not have a HttpContext we need to source one the hard way
$site=new-object Microsoft.SharePoint.SPSite($PortalURL)
$site.Dispose() # clean up
# Return the UserProfileManager
new-object Microsoft.Office.Server.UserProfiles.UserProfileManager($servercontext)

$portalurl = "http://portal"

$portal    = new-object Microsoft.SharePoint.SPSite($portalurl)
$portalweb = $portal.OpenWeb()
$upm       = Get-SPProfileManager $portalurl

foreach ($profile in $upm)
   $profile["PictureURL"].Value = $portalurl + "/employee photos/" + $profile["EmployeeID"].Value + ".jpg"


Open in new window


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SharePoint

From novice to tech pro — start learning today.