POSTS
SharePoint 2010 & PowerShell: Site Collections
By Brian
First, let’s create a collaboration site for the HR group. This script is almost identical to the script we used to create the root site collection in the prior post. Once again, you will need to provide a name for the site, the email address and username of the site owner, and a URL. Notice that I have simply added “/sites/hr” to the end of the web application URL. By default, site collections are created beneath the managed path “/sites/”. You can create new managed paths using the New-SPManagedPath command. Also, notice that we are using the STS#0 site template. This template will create a team site. Here is a list of common templates that you can pick from:
- STS#0 - Team Site
- STS#1 - Blank Site
- STS#2 - Document Workspace
- MPS#0 - Basic Meeting Workspace
- MPS#1 - Blank Meeting Workspace
- MPS#2 - Decision Meeting Workspace
- MPS#3 - Social Meeting Workspace
- MPS#4 - Multipage Meeting Workspace
- WIKI#0 - Wiki
- BLOG#0 – Blog
|
|
|
|
In addition, there seems to be a bug in the API and the binding is not created for our new site in IIS. Therefore, I have added a few additional lines to create the binding. Note that you need to pass the name of the web application we created in the previous post.
|
|