The drawback of this solution is that you can only create managed path sites on primary Alternate Access for webapplication.
Microsofts documentation leaves some holes in regards to how to activate selfservicing functions with powershell in Sharepoint 2019 so I digged for the related values and found settings below. Most are obvious, one wasn't.
Script below
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add-PSSnapin microsoft.sharepoint.powershell | |
$WebApp = Get-SPWebApplication "https://mysite.company.com/" | |
$webApp.ShowStartASiteMenuItem = $false | |
$webApp.SelfServiceSiteCreationEnabled = $false | |
$webApp.Update() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add-PSSnapin microsoft.sharepoint.powershell | |
$WebApp = Get-SPWebApplication "https://mysite.company.com/" | |
$webApp.SelfServiceSiteCreationEnabled = $true | |
$webApp.ShowStartASiteMenuItem = $true | |
$webApp.SelfServiceCreationAlternateUrl = "https://workspace.company.com" | |
$webApp.Update() |
References:
https://docs.microsoft.com/en-us/sharepoint/sites/configure-self-service-site-creation-in-sharepoint-server-2019
No comments:
Post a Comment