tag:blogger.com,1999:blog-1499891447911213982.post1615488050493743050..comments2023-10-03T12:19:16.352+11:00Comments on Eric Fang's SharePoint Boat: How to change My Site Host UrlEric Fanghttp://www.blogger.com/profile/10675678674495158891noreply@blogger.comBlogger9125tag:blogger.com,1999:blog-1499891447911213982.post-79630640968822675712014-01-14T18:59:15.600+11:002014-01-14T18:59:15.600+11:00question:
1. Does the user must first create his ...question:<br /><br />1. Does the user must first create his personal page and then it works? Or can I just install only SharePoint, and then enter the commands? <br /><br />2. Can you please explain what steps I need to perform this: Extend the web application to another IIS Web Site and then change AAM<br /><br />3. What is the AAM?<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1499891447911213982.post-43567659541199132832013-12-31T16:23:35.633+11:002013-12-31T16:23:35.633+11:00Dave,
Sorry, I haven't got chance to try that...Dave,<br /><br />Sorry, I haven't got chance to try that yet.Eric Fanghttps://www.blogger.com/profile/10675678674495158891noreply@blogger.comtag:blogger.com,1999:blog-1499891447911213982.post-57772769258278158402013-09-21T02:20:19.422+10:002013-09-21T02:20:19.422+10:00Sorry my last communication was unclear but what I...Sorry my last communication was unclear but what I was trying to say was I have tried multiple $AnySiteCollectionUrl =<br /><br />for examnple<br /><br />$AnySiteCollectionUrl = "http://www.subdomain.mydomain.com/"<br />$AnySiteCollectionUrl = "http://www.subdomain2.mydomain.com/"<br />$AnySiteCollectionUrl = "http://www.subdomain3.mydomain.com/"<br /><br />no luck.<br /><br />Is this something that you have tried on SharePoint 2013?Davehttps://www.blogger.com/profile/14986207178696429786noreply@blogger.comtag:blogger.com,1999:blog-1499891447911213982.post-72742459918445244162013-09-20T13:07:48.957+10:002013-09-20T13:07:48.957+10:00Dave,
I mean, you may try this one:
$AnySiteColl...Dave,<br /><br />I mean, you may try this one:<br /><br />$AnySiteCollectionUrl = "http://www.subdomain.mydomain.com/"<br />$site = Get-SPSite $AnySiteCollectionUrl<br /><br />......Eric Fanghttps://www.blogger.com/profile/10675678674495158891noreply@blogger.comtag:blogger.com,1999:blog-1499891447911213982.post-43766826509052239012013-09-20T12:35:41.912+10:002013-09-20T12:35:41.912+10:00Thanks for responding Eric. I actually have tried...Thanks for responding Eric. I actually have tried multiple "$AnySiteCollectionUrl" with no luck. I have tried other combinations such as <br /><br />$pm.MySiteHostUrl = ""<br />$pm.MySiteHostUrl = "http://mysites.mydomain.com/"<br /><br />$pm.MySiteHostUrl = "http://mysites.mydomain.com/"<br />$pm.MySiteHostUrl = "http://mysites.mydomain.com/"<br /><br /><br />Although the script returns results saying the site has been changed I don't see any differences on the site or central admin.<br /><br />Thanks again for the response.<br /><br />Davehttps://www.blogger.com/profile/14986207178696429786noreply@blogger.comtag:blogger.com,1999:blog-1499891447911213982.post-91979140644873802522013-09-20T08:41:49.472+10:002013-09-20T08:41:49.472+10:00Hi Dave,
Could you try any other site url for &qu...Hi Dave,<br /><br />Could you try any other site url for "$AnySiteCollectionUrl"?Eric Fanghttps://www.blogger.com/profile/10675678674495158891noreply@blogger.comtag:blogger.com,1999:blog-1499891447911213982.post-1698906324932541272013-09-20T05:23:20.528+10:002013-09-20T05:23:20.528+10:002 questions.
1st: Does this work on SharePoint 2...2 questions.<br /><br />1st: Does this work on SharePoint 2013 because that is what I am trying to use it on.<br /><br />2nd: When I run the 1st script it returns the new site as the same as the previuous site URL.<br /><br />What am I doing wrong? thanks<br /><br />my script example<br /><br />Add-PSSnapin Microsoft.Sharepoint.Powershell <br /><br />$AnySiteCollectionUrl = "http://mysites.subdomain.mydomain.com/"<br />$site = Get-SPSite $AnySiteCollectionUrl<br /><br />$context = Get-SPServiceContext($site) <br />$pm = new-object Microsoft.Office.Server.UserProfiles.UserProfileManager($context) <br /><br />Write-Host "previous My Site Host Url: " $pm.MySiteHostUrl -ForegroundColor Yellow;<br /><br />$pm.MySiteHostUrl = "mysites.mydomain.com"<br />$pm.MySiteHostUrl = "http://mysites.subdomain.mydomain.com/"<br />Write-Host "new My Site Host Url: " $pm.MySiteHostUrl -ForegroundColor Yellow;<br /><br />$site.Dispose()<br /><br />Write-Host "Finished! Press enter key to exit." -ForegroundColor Green<br />Read-Host<br /><br />Davehttps://www.blogger.com/profile/14986207178696429786noreply@blogger.comtag:blogger.com,1999:blog-1499891447911213982.post-59553029239395426502013-04-25T21:08:52.466+10:002013-04-25T21:08:52.466+10:00>>I had some difficulties running the code a...>>I had some difficulties running the code as user SP-Admin<br /><br />I think you need db_owner rights of the sp config database and the user profile db<br /><br />>>Also I had to remove the URL I was going to use as new MySiteHostURL from Alternate Access Mappings and reinsert it after the process<br /><br />Sorry, I don't know the reason of it.<br /><br />>>the changes don't seem to get persisted correctly<br /><br />Not sure. May need to change the default url of "my site web application"Eric Fanghttps://www.blogger.com/profile/10675678674495158891noreply@blogger.comtag:blogger.com,1999:blog-1499891447911213982.post-60287536375743227582013-04-18T18:45:23.631+10:002013-04-18T18:45:23.631+10:00This was very helpful. Thanks.
I had some difficu...This was very helpful. Thanks.<br /><br />I had some difficulties running the code as user SP-Admin even though the user had the correct persmissions. I had to user SP-Farm account for this.<br /><br />Also I had to remove the URL I was going to use as new MySiteHostURL from Alternate Access Mappings and reinsert it after the process.<br /><br />Furthermore, the changes don't seem to get persisted correctly. I changed it, checked it an it worked. When I looked into the service application's properties a week later the MySiteHostURL was changed back to its original value. Any idea about that?Benhttps://www.blogger.com/profile/08783145877429755655noreply@blogger.com