Share via


Createsite: Stsadm operation (Office SharePoint Server)

Applies To: Office SharePoint Server 2007

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.

 

Topic Last Modified: 2015-03-09

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 <someone@example.com>**

**\[-ownerlogin \<domain\\name\>\]**

**\[-ownername \<display name\>\]**

**\[-secondaryemail \<someone@example.com\>\]**

**\[-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
/site_name

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 someone@example.com

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 someone@example.com

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.

Note

You must specify this parameter when using a language other than the install language of a SharePoint template.

Note

Confirm the appropriate language template pack is installed before attempting to create a site in a language other than that specified at installation.

sitetemplate (st)

Valid values available 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

Note

If you added a template using the Addtemplate operation to the central template gallery, you must specify the template name as GLOBAL#number, where number refers to the template ID.

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

Note

The title can contains a space provided it is enclosed within quotation marks, for example, "New Site".

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.