February 2013
Intermediate to advanced
304 pages
8h 26m
English
Scenario/Problem: You need to create a new site collection.
Solution: Use the New-SPSite cmdlet.
To add a new site collection, use the New-SPSite cmdlet as follows:
New-SPSite -url <full url of new site collection>-name <name of new site collection>-owneralias <site collection administrator>-template <site collection template to use>
Listing 8.7 shows a sample command-line entry for creating the root site collection using the Team Site template.
Listing 8.7. Creating a New Site Collection
New-SPSite -url http://sp2013/sites/sitecol -name Home-owneralias SP\SiteAdmin -template STS#0
The site template names can be found using Get-SPWebTemplate. If no template is provided, the site collection will still be created. ...
Read now
Unlock full access