Createsite: Stsadm operation (Office SharePoint Server) | |
Stsadm command-line tool (Office SharePoint Server) > Stsadm operations (Office SharePoint Server) > Site management: Stsadm operations (Office SharePoint Server) > |
This Office product will reach end of support on October 10, 2017. To stay supported, you will need to upgrade. For more information, see , Resources to help you upgrade your Office 2007 servers and clients.
Operation name: Createsite
Description
Creates a site collection at the specified Uniform Resource Locator (URL) with the specified user as site collection owner and site collection administrator.
Note: |
---|
The createsite operation does not create a new content database. If you want a new content database to be created with the new site, see the Createsiteinnewdb operation. |
Syntax
stsadm -o createsite
-url <URL name>
-owneremail <[email protected]>
[-ownerlogin <domain\name>]
[-ownername <display name>]
[-secondaryemail <[email protected]>]
[-secondarylogin <domain\name>]
[-secondaryname <display name>]
[-lcid <language>]
[-sitetemplate <site template>]
[-title <site title>]
[-description <site description>]
[-hostheaderwebapplicationurl <Web application URL>]
[-quota <quota template>]
Parameters
Parameter name (and short form) |
Value |
Required? |
Description | ||||
url |
A valid URL name, such as http://server_name/explicit_inclusion or http://server_name/sites |
Yes |
The URL where the site collection should be created. The URL should either correspond to an explicit inclusion on a Web application or a path below a wildcard inclusion on a Web application. | ||||
owneremail (oe) |
A valid e-mail address, in the form [email protected] |
Yes |
The site owner's e-mail address. | ||||
ownerlogin (ol) |
If Windows authentication is used, then a valid Windows user name must be qualified with a domain name, for example, domain\name. If you have forms authentication configured, you can provide a user identity in the format providername:username. |
If your farm does not have Active Directory account creation mode enabled, then this parameter is required. This parameter should not be provided if your farm has Active Directory account creation mode enabled, as Microsoft Office SharePoint Server 2007 will automatically create a site collection owner account in Active Directory based on the owner e-mail address. |
The site owner's user account. | ||||
ownername (on) |
A valid name, such as "Joe" |
No |
The site owner's display name. | ||||
secondaryemail (se) |
A valid e-mail address, in the form [email protected] |
No |
The secondary site owner's e-mail address. | ||||
secondarylogin (sl) |
If Windows authentication is used, then a valid Windows user name, must be qualified with a domain name, for example, domain\name. If you have forms authentication configured, you can provide a user identity in the format providername:username. |
If your farm does not have Active Directory account creation mode enabled, then this parameter is required. This parameter should not be provided if your farm has Active Directory account creation mode enabled, as Microsoft Office SharePoint Server 2007 will automatically create a site collection owner account in Active Directory based on the owner e-mail address. |
The secondary site owner's user account. | ||||
secondaryname (sn) |
A valid name, such as "Fred" |
No |
The secondary site owner's display name. | ||||
lcid |
A valid locale ID, such as "1033" for English |
No |
The language that should be used when creating the site.
| ||||
sitetemplate (st) |
Valid values available in a default installation include:
|
No |
Specifies the type of template to be used by the newly created site. If you do not specify a template to use, the owner can choose a template when he or she first browses to the site. The value must be in the form name#configuration. If you do not specify the configuration, (for example, STS) configuration 0 is the default (for example, STS#0). The list of available templates can be customized to include templates you create. To display a list of custom templates, use the Enumtemplates operation. | ||||
title (t) |
A valid title
|
No |
The title of the new site collection. The maximum length is 255 characters. | ||||
description (desc) |
A valid text string, such as "This is a description" |
No |
Description of the site collection. | ||||
hostheaderwebapplicationurl (hhurl) |
A valid URL assigned to the Web application by using Alternate Access Mapping (AAM), such as "http://server_name" |
No |
When the hostheaderwebapplicationurl parameter is present, the value of the url parameter is the URL of the host-named site collection and value of the hostheaderwebapplicationurl parameter is the URL of the Web application that will hold the host-named site collection. For additional information on host named site collection, see Plan for host-named site collections (Windows SharePoint Services). | ||||
quota |
A valid quota template name, for example, "PersonalQuotas" |
No |
The quota template to apply to sites created on the virtual server. |