This activity creates a new top-level web site in the current web application.
Note: By defining managed paths, you can specify which paths in the URL namespace of a web application are used for site collections. You can specify that either one site collection or multiple site collections exist at a specified path. For example, an explicit path of “hr” indicates that the URL http://server/hr is a site collection, whereas a wildcard path of “sites” indicates that child URLs of http://server/sites/, such as http://server/sites/team, are site collections. To add a new URL path, go to the Define Managed Paths page (Central Administration > Application Management > Define Managed Paths).
SharePoint Workflow Designer Phrase
Create a new site collection titled this title at this url, using this template, with description this description. Site collection administrator: primary and secondary.
Parameters
Parameter | Description |
this title | The title of the new site. The maximum length is 255 characters. |
this URL | The complete URL where the site should be created, e.g., http://server01/sites/MySitex . To add a new URL path, go to the Define Managed Paths page (Central Administration > Application Management > Define Managed Paths). |
this template | Optional. Specifies the type of template to be used by the newly created site. If you do not specify a template, the owner can choose one when first browsing to the site. The value may be in one of the following forms: – name#configuration (e.g., STS#0). If configuration is not specified, configuration 0 is the default. – Template title from Site Template Gallery (e.g., “Example template”). – Template file name from Site Template Gallery (e.g., ExampleTemplate.stp). |
this description | Optional. Description of the new site. |
Primary | Specify the administrator for this web site collection. |
Secondary | Optional. Specify the secondary administrator for this web site collection. |
Note: The template should be uploaded to the Site Template Gallery (see instructions below) or added to the global templates list using the STSADM -o AddTemplate command (see Microsoft documentation).
Valid Values in a Default Installation Include:
- 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
- BLOG#0: Blog
- WIKI#0: Wiki Site
Upload and Use a Site Template (.stp) in SharePoint
- Log on to SharePoint as an administrator for the site collection where you want to upload the template. Make sure to browse to the top-level site of the site collection.
- Click the Site Actions button → Site Settings → Modify All Site Settings.
- In the Galleries section, select Site templates.
- On the Site Template Gallery page, select Upload or Upload multiple documents.
- On the Upload Template: Site Template Gallery page, browse to the .stp file and click OK to upload the file.
You have now successfully uploaded the template and are ready to use it.
Enumerate All Site Templates with PowerShell