Tuesday, September 6, 2016

Change My Site Host URL in User Profile Service Application using PowerShell

Once My site host web application and site collection is created, the next step is to configure user profile service application to use the My site host. Here is how to set my site host in user profile service application of SharePoint 2016.

  • Login to SharePoint 2016 Central Administration site
  • Click on Application Management >> Manage service applications.
  • Select your User Profile Service Application >> From the Manage User profile service page, under My Site Settings section, click on "Setup My Sites" link.
    sharepoint 2016 set my site host url powershell
  • Enter the My Site Host URL and click Save. You may have to specify other settings such as Personal Site Location, Site Naming Format, Secondary Owner, etc.
Make sure your My Site URL is the default one under AAM!

PowerShell to Set My Site Host Location in SharePoint: 
Lets change my site host URL in SharePoint 2013 using PowerShell
Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue

$MySiteHostURL="http://mysite.crescent.com/ "

#$MySite = Get-SPSite $MySiteHostURL
$SiteContext = Get-SPServiceContext($MySiteHostURL)
$UPM = new-object Microsoft.Office.Server.UserProfiles.UserProfileManager($SiteContext)
#remove my site host location
$UPM.MySiteHostUrl = ""
#Change My Site Host location
$UPM.MySiteHostUrl = $MySiteHostURL
Write-host "My Site Host Location Changed!"

Tags: sharepoint change my site host url, sharepoint 2010 change my site host url powershell, sharepoint 2013 change my site host, sharepoint 2013 change my site host location, change my site host url sharepoint 2013 powershell, sharepoint 2013 my site host url



You might also like:
SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Document SharePoint Farm
Automatically generate SharePoint documentation.
*Sponsored


Check out these SharePoint products:

No comments :

Post a Comment

Please Login and comment to get your questions answered!


You might also like:

Related Posts Plugin for WordPress, Blogger...