2

enter image description hereI want to set "Prompt users to create a team site under" link in self service site creation management under central admin using Powershell ?

2
  • Can you please add screenshot of the setting? – love thakker Jan 12 '17 at 17:27
  • Added screenshot for reference.I Want to set this link using PowerShell. – Jay Shah Jan 13 '17 at 7:52
2

Try below PowerShell command for the relative path for the URL:

$web.SelfServiceCreationParetntSiteUrl = "/relativePath/[%userid%]"
$web.update();

The output will be like below:

enter image description here

You can visit this link for more information on set up User Profile My site using PowerShell.

0
1

Above code sets link for "Prompt user to create team site under". But its not selected by default.Need to write code as below for link to be set and selected.

$web.ShowStartASiteMenuItem=$True
$web.Update()
$web.SelfServiceCreateIndividualSite=$True
$web.SelfServiceCreationParetntSiteUrl = "/relativePath" 
$web.update()

Above code sets the link and also make it selected for "Prompt user to create team site under".

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.