brianlala / AutoSPInstaller

Automated SharePoint 2010/2013/2016/2019/SE PowerShell-based installation script.
https://autospinstaller.com
MIT License
171 stars 81 forks source link

Make User Profile Service MySiteHostLocation optional #26

Closed alarkvell closed 6 years ago

alarkvell commented 6 years ago

It would be useful to be able to install User Profile Service Application without "my sites".

When creating a new User Profile Service Application in Central Administration, I can set "My Site Host URL" to empty value and click "Create".

I would like to do the same with AutoSPInstaller - set MySiteHostLocation value empty in AutoSPInstallerInput.xml

<UserProfileServiceApp Provision="true">
    ...
    <MySiteHostLocation></MySiteHostLocation>
    <MySiteManagedPath></MySiteManagedPath>
    ...
</UserProfileServiceApp>

Then New-SPProfileServiceApplication would be called without "-MySiteHostLocation" switch. I tested this change on SharePoint 2016.

brianlala commented 6 years ago

I should point out that creating a UPA without specifying a My Site Host location will result in the following Health Analyzer issue (at least in 2019): "Verify each User Profile Service Application has a My Site Host configured".

alarkvell commented 6 years ago

Thank you for pointing it out. Interestingly enough SharePoint 2016 Health Analyzer does not show this warning.