O'Reilly logo

Essential SharePoint by Jeff Webb

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required