Something strange has happend in my environment. I've pre-populated 1500 user profiles and everything was ok. After some changes with the connections filters in user profile synchronization connection it seams that every users has got their personal site url deleted in their user properties.

Question 1: Is there a way to update every user profile with their "Personal site" url? (timerjob / cleanup .. )

I'm trying to run a script to update every user profile but when I try to update the field I get that the property are "read-only".

foreach($profile in $AllProfiles)

    $DisplayName = $profile.DisplayName
    $AccountName = $profile[[Microsoft.Office.Server.UserProfiles.PropertyConstants]::AccountName].Value

            #$time = Get-Date -Format HH:mm:ss
            if($profile.PersonalSite -eq $Null)
                $person = $AccountName.Substring(7)
                $personalSite = Get-SPSite $profilFullURL"/personal/"$person

                    Write-Host $time" $x  updating personal site in profile:"$person -NoNewline
                    $profile.PersonalSite = $personalSite.Url
                    Write-Host " Done" -ForegroundColor Green

Question 2: how do I update personalsite ? (read-only)

  • Try to run the script as the farm admin on the server. Nov 25, 2015 at 13:51
  • I usually run script as sync user. but I tried with sp_farm and it didn't work
    – Plexus81
    Nov 25, 2015 at 13:56
  • Aside from the blank URL are you seeing some behavior that this is impacting? Usually the mysite link will resolve itself when the user is redirected. What is the problem you face? Nov 25, 2015 at 18:35
  • No strange behavior right now.. But its kind of strange and makes me nervous.
    – Plexus81
    Nov 25, 2015 at 18:57

1 Answer 1


I found the answer for updating the field.. Had to use

$profile["PersonalSpace"].Value = "/personal/"+$person

Remember to have a url that starts with "/personal/"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.