I need the url of the mysite in SharePoint 2010 server. In my farm i only have one MySite host (and one corresponding user profile service) configured.
I need the information on one of the farm servers and i'm using powershell for my script.
|
I need the url of the mysite in SharePoint 2010 server. In my farm i only have one MySite host (and one corresponding user profile service) configured. I need the information on one of the farm servers and i'm using powershell for my script. |
|||
|
|
Using the sharepoint Management Shell you can execute the following script. Replace the url with one of the application url's your are running on:
If no url is available take one from Get-SPWebApplication if all web apps are using the same UPS. |
|||
|
|
|
If you are looking for the Personal site for a user profile you can get that from the UserProfileManager.UserProfile.PublicUrl. |
|||
|
|