StsAdm Commands

The StsAdm.exe utility allows Administrators to maintain and modify SharePoint sites through a command-line interface. The StsAdm.exe command-line has the general form:

   stsadm.exe -o command -url siteAddress 
            commandParameters

This utility is installed in the C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\60\BIN folder.

Command

Use to

Parameters

addpath

Add a defined path (inclusion or exclusion) to a virtual server.

-url

-type

addtemplate

Add a site template to the template gallery.

-filename

-title

-description

adduser

Add a user account to the specified site and assign it to the specified site group.

-url

-userlogin

-useremail

-role

-username

-siteadmin

addwppack

Add a Web Part package to your server Web Part gallery.

-filename or -name

-url

-globalinstall

-force

-lcid

backup

Create a backup of the site at the specified URL.

-url

-filename

-overwrite

binddrservice

Register a data-retrieval service.

-servicename

-setting

createadminvs

Create the administration virtual server for Microsoft Windows SharePoint Services.

-admapcreatenew

-admapidname

-admapidtype

-admapidlogin

-admapidpwd

createsite

Create a site at the specified URL.

-url

-ownerlogin

-owneremail

-ownername

-lcid

-sitetemplate

-title

-description

-quota

createsiteinnewdb

Create a site at the specified URL and create a new content database.

-url

-ownerlogin

-owneremail ...

Get Essential SharePoint now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.