Problem running Update-SPProfilePhotoStore
After doing a user profile migration (SharePoint 2007 to 2010), one of the post-migration steps is to update the user profile photos. The PowerShell script to do that is:
Update-SPProfilePhotoStore –MySiteHostLocation <url to my site host>
When I ran this (logged in as my SharePoint admin account) I got the following error:
The ULS log spits out:
According to TechNet, I should:
Verify that you meet the following minimum requirements: See Add-SPShellAdmin. You must also be a site collection administrator for the My Site host, and you must be a User Profile service application administrator with the Manage Profiles permission.
Well that was all set and I was still getting the error.
It seems the cmdlet uses the WCF service ProfilePropertyService.svc, so I gave my admin account full control in the Sharing section of the UPS application.
This got me further, but now I’m getting access denied for the my site host database.
So I add my admin account to the database containing my site host as db_owner, then re-run the cmdlet.
Success! All photos are being added to the my site host library User Photos.
Leave a Reply Cancel reply
My Tweets
- RT @Lesdoggg: Don’t know who this dude is but he broke that shit DOWN!! Listen especially the ones that need to hear it!! https://t.co/gSZn… 6 days ago
- RT @jeffhollan: The new designer for @logicappsio, being able to build it using a visual designer in @code, leveraging 300+ connectors... t… 6 days ago
- @allymayn Not sure many parents said "turn off that game or you'll end up voting for a wanna be dictator as president". 2 months ago
- RT @sarahcpr: I’m a lawyer for the Trump campaign https://t.co/19YFlU8qDg 2 months ago
- Insight’s Connected Platform for Detection and Prevention combines thermal cameras, real-time information and inter… twitter.com/i/web/status/1… 6 months ago
Categories
Archives
- June 2014
- March 2014
- December 2013
- August 2013
- April 2013
- February 2013
- November 2012
- September 2012
- August 2012
- March 2012
- February 2012
- June 2011
- April 2011
- March 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- March 2010
- February 2010
- December 2009
- November 2009
- October 2009
Thanks, saved my day! 🙂
Thank you very much for sharing this information. You save me a lot of time and I appreciate it!