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

-ownername

-databaseuser

-databasepassword

-databaseserver

-databasename

-lcid

-sitetemplate

-title

-description

-secondarylogin

-secondaryemail

-secondaryname

createweb

Create a subsite at the specified URL.

-url

-lcid

-sitetemplate

-title

-description

-unique

deleteadminvs

Delete the administration virtual server.

None

deleteconfigdb

Delete the configuration database.

None

deletepath

Remove an included or excluded path from the list of paths.

-url

deletesite

Delete the specified site.

-url

-deleteadaccounts

deletetemplate

Delete the specified site template.

-title

-lcid

deleteuser

Delete the specified user.

-url

-userlogin

deleteweb

Delete the specified subsite.

-url

deletewppack

Remove the web parts in a web part package from a virtual server

-name

-url

-lcid

disablessc

Disable self-service site creation for the specified virtual server.

-url

disablestsisapis

Disable the Windows SharePoint Services ISAPI extensions.

None

email

Set the e-mail configuration settings for your server, or for a specific virtual server.

-outsmtpserver

-fromaddress

-replytoaddress

-codepage

-url

enablessc

Enable self-service site creation for the specified virtual server.

-url

-requiresecondarycontact

enablestsisapis

Enable the Windows SharePoint Services ISAPI extensions.

None

enumroles

List the site groups that are available for use in a particular site or subsite.

-url

enumsites

List all of the sites that have been created under a particular virtual server.

-url

enumsubwebs

List the subsites that have been created under a particular site.

-url

enumtemplates

Lists the site templates that are available.

-lcid

enumusers

List the users of a particular site or subsite.

-url

enumwppacks

List the web part packages currently in your server web part gallery.

-name

-url

extendvs

Extend a virtual server with SharePoint and create a new content database.

-url

-ownerlogin

-owneremail

-ownername

-databaseuser (du)

-databaseserver (ds)

-databasename (dn)

-databasepassword (dp)

-lcid

-sitetemplate

-donotcreatesite

-apcreatenew

-apidname

-apidtype

-apidlogin

-apidpwd

extendvsinwebfarm

Extend a virtual server with SharePoint for use in a server farm.

-url

-vsname

-apcreatenew

-apidname

-apidtype

-apidlogin

-apidpwd

getadminport

Return the administration port for Windows SharePoint Services.

None

getproperty

Return the property value for the specified property name.

-propertyname or -pn

-url

removedrservice

Remove a data retrieval service.

-servicename

-setting

renameweb

Rename a subsite.

-url

-newname

restore

Restore a web site from a backup file.

-url

-filename

-overwrite

setadminport

Set the port number for the administration virtual server.

-port

-ssl

-admapcreatenew

-admapidname

-admapidtype

-admapidlogin

-admapidpwd

setconfigdb

Create the configuration database or specify the connection to an existing configuration database.

-databaseserver (ds)

-connect

-databaseuser (du)

-databasepassword (dp)

-databasename (dn)

-hh

-adcreation

-addomain

-adou

setproperty

Set a property by name.

-propertyname or -pn

-propertyvalue or -pv

-url

siteowner

Set the owner or secondary owner of a site collection.

-url

-ownerlogin

or

-secondownerlogin

unextendvs

Removes SharePoint from a virtual server.

-url

-deletecontent

uninstall

Uninstall SharePoint from the default virtual server at port 80.

-deletecontent

upgrade

Upgrade the server with SharePoint.

-url

userrole

Specify the site group membership for a user.

-url

-userlogin

-role

-add

-delete




Essential SharePoint
Essential SharePoint 2007: A Practical Guide for Users, Administrators and Developers
ISBN: 0596514077
EAN: 2147483647
Year: 2005
Pages: 153
Authors: Jeff Webb

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net