Posts Tagged "mySite"

How to fix broken images after mySite URL change in SharePoint 2010?

Posted by on Jan 27, 2012 in Powershell, Sharepoint Server | 9 comments

Here is a small PowerShell script to fix the pictureurl for all userprofiles after changing the mySite Url: $mySiteWebapplicationUrl = "https://mysite.normanbauer.com/" #current Url of your mySite website $mySiteOldUrlValue = "http://mysitetest:80/" #former Url where your pictures do not reside any more $mySiteNewUrlValue = "https://mysite.normanbauer.com:443/" #current Url where your images can be found now $mySite = Get-SPSite $mySiteWebapplicationUrl $SPServiceContext = Get-SPServiceContext $mySite $userProfileManager = New-Object...

Read More