Share via


Createweb: 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: Createweb

Description

Creates a subsite at the specified Uniform Resource Locator (URL).

Syntax

stsadm -o createweb

**   -url <URL name>**

**\[-lcid \<language\>\]**

**\[-sitetemplate \<site template\>\]**

**\[-title \<site title\>\]**

**\[-description \<site description\>\]**

**\[-convert\]**

**\[-unique\]**

Parameters

Parameter name and (short form)

Value

Required?

Description

url

A valid URL name, such as http://server_name/sites/site_name/subsite_name

Yes

The URL where the subsite should be created. This should be a path below an existing site collection or subsite.

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 the 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.
For additional information about language packs, see Install available language template packs (Office SharePoint Server)

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 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 subsite.

The maximum length is 255 characters.

description (desc)

A valid text string, such as "This is a description"

No

Description of the new subsite.

convert (cvt)

<none>

No

If you include the convert parameter and there is an existing folder at the URL for the new subsite, then Microsoft Office SharePoint Server 2007 will convert that folder to become a subsite.

If you do not include the convert parameter and there is an existing folder at the URL for the new subsite, then the following error message is displayed: "The URL path with the specified site name already exists."

unique

<none>

No

Specifies whether the site has unique permissions instead of inheriting them from the parent.