viernes, 8 de marzo de 2013

New-spsite cmlet doesn´t create the default security groups


Lets say that for organization´s procedure we need to create a content database per each new site. In this case the easier way is using powerShell and the cmdlet new-spsite with the flag -ContentDatabase

Tech info related to the cmdlet …

The steps are straight forward:

  • Creating the new content DB (PowerShell or CA)
  • Creating the new site using new-spsite, it´s allow you to choose the name of the content DB.

But here is the surprise, it creates the new site in the content db but I was missing the
pre-defined SharePoint groups of the new site (visitors, members, owners, ...). They are not created through command line and there´s not a flag that allows it. If you search in internet you´ll find some  solutions by scripting.

Then I created the new site using the Central administration. In this case the steps are easy also but a bit more of work:

  • Creating the new content DB (PowerShell or CA)
  • Limit the number of site collections that can be created in any other content database associated with the web application. Other option is to change the status to read only during the process.
  • Create the new site.

No hay comentarios:

Publicar un comentario