Activates a feature in the feature collection. No Feature
stsadm.exe -o activatefeature {-filename <relative path to Feature.xml> | -name <feature folder> | -id <feature Id>} [-url <url>] [-force] |
No Forms stsadm -o activateformtemplate -url <URL to the site collection> [-formid <form template ID>] [-filename <path to form template file>] |
Adds an internal URL and maps it to one of the five URL zones of a Web application or external resource. No URL
stsadm.exe -o addalternatedomain -url <protocol://existing.WebApplication.URLdomain> -incomingurl <protocol://incoming.url.domain> -urlzone <default, extranet, internet, intranet, custom> -resourcename <non-web application resource name> |
Creates a new content database or adds a database that needs to be upgraded when the url and databasename parameters are specified. No Database
stsadm.exe -o addcontentdb -url <url> -databasename <database name> [-databaseserver <database server name>] [-databaseuser <database username>] [-databasepassword <database password>] [-sitewarning <site warning count>] [-sitemax <site max count>] |
Adds a new DataConnectionFile to the DataConnectionFiles collection for InfoPath Forms Services. No Excel Services
stsadm -o adddataconnectionfile -filename <path to file to add> [-webaccessible <bool>] [-overwrite <bool>] [-category <bool>] |
Lets an administrator add a file to the trusted location list. No Excel Services
stsadm -o add-ecsfiletrustedlocation -Ssp <SSP name> -Location <URL|UNC> -LocationType SharePoint|Unc|Http -IncludeChildren True|False [-SessionTimeout <time in seconds>] [-ShortSessionTimeout <time in seconds>] [-MaxRequestDuration <time in seconds>] [-MaxWorkbookSize <file size in Mbytes>] [-MaxChartSize <size in Mbytes>] [-VolatileFunctionCacheLifetime <time in seconds>] [-DefaultWorkbookCalcMode File|Manual|Auto|AutoDataTables] [-AllowExternalData None|Dcl|DclAndEmbedded] [-WarnOnDataRefresh True|False] [-StopOpenOnRefreshFailure True|False] [-PeriodicCacheLifetime <time in seconds>] [-ManualCacheLifetime <time in seconds>] [-MaxConcurrentRequestsPerSession <number of requests>] [-AllowUdfs True|False] [-Description <descriptive text>] |
Lets an administrator add a supported provider type to the safe provider list. No Excel Services
stsadm -o add-ecssafedataprovider -Ssp <SSP name> -ID <data provider id> -Type Oledb|Odbc|OdbcDsn [-Description <descriptive text>] |
Adds a trusted data connection to a library. No Excel Services
stsadm -o add-ecstrusteddataconnectionlibrary -Ssp <SSP name> -Location <URL> [-Description <descriptive text>] |
Adds a user defined function. No Excel Services
stsadm -o add-ecsuserdefinedfunction -Ssp <SSP name> -Assembly <strong name|file path> -AssemblyLocation GAC|File [-Enable True|False] [-Description <descriptive text>] |
Adds a user agent, which is typically in the form of a search bot, to receive the XML file that contains the data of the form for indexing instead of the HTML rendering of the form. No Forms
stsadm -o addexemptuseragent -name <user-agent to receive InfoPath files instead of a Web page> |
Adds a managed path inclusion to a Web application. No URL
stsadm.exe -o addpath -url <url> -type <explicitinclusion/wildcardinclusion> |
Adds a user to a policy role for the Web application based on the specified permission level name and corresponding zone. No Users and Rights
stsadm.exe -o addpermissionpolicy -url <url> -userlogin <login name> -permissionlevel <permission policy level> [-zone <URL zone>] [-username <display name>] |
Adds a solution file to the solution store. No Solution
stsadm.exe -o addsolution -filename <Solution filename> [-lcid <language>] |
Adds a site template to the template gallery. No Template stsadm.exe -o addtemplate -filename <template filename> -title <template title> [-description <template description>] |
Adds a user account to the specified site and assigns it to the specified site group. Use the siteadmin parameter to register the user as the site administrator. No Users and Rights
stsadm.exe -o adduser -url <url> -userlogin <DOMAIN\user> -useremail < someone@example.com> -role <role name> / -group <group name> -username <display name> [-siteadmin] |
Adds a Web Part package to your server Web Part gallery. Yes Web Parts
stsadm.exe -o addwppack -filename <Web Part Package filename> [-lcid <language>] [-url <url>] [-globalinstall] [-force] [-nodeploy]
stsadm.exe -o addwppack -name <name of Web Part Package> [-lcid <language>] [-url <url>] [-globalinstall] [-force]
Use the globalinstall parameter to install the Web Parts in the global assembly cache (GAC) rather than in the Bin directories of each virtual server. Assemblies installed in the GAC are available to all applications on the server. The url parameter optionally specifies the URL of the virtual server on which to install the Web Parts. To install the Web Parts on every virtual server on a server, omit theurl parameter. Use the force parameter to overwrite an existing Web Part package with a new version, or to repair a Web Part package by reinstalling it. Use the lcid parameter to specify a language for the Web Part package.
Use filename to specify the path to the cabinet file containing the Web Parts and associated resources. If the Web Part package has already been installed on another server in a server farm configuration, you can install the Web Part package from the configuration database by using the name parameter. |
Configures the public URL and maps it to one of the five URL zones of a Web application or external resource. No URL
stsadm.exe -o addzoneurl -url <protocol://existing.WebApplication.URLdomain> -urlzone <default, extranet, internet, intranet, custom> -zonemappedurl <protocol://outgoing.url.domain> -resourcename <non-web application resource name> |
Determines whether a user form template (that is, a non-administrator deployed form template published to a content type or a document library) can use the proxy. No Forms
stsadm -o allowuserformwebserviceproxy -url <Url of the web application> -enable <true to enable, false to disable> |
Turns on or off the Web service proxy for the specified Web application. No Forms
stsadm -o allowwebserviceproxy -url <Url of the web application> -enable <true to enable, false to disable> |
No Site
stsadm -o associatewebapp -title <SSP name> [-default | -parent] -url <Web application 1 url,Web application 2 url> [-all] |
Authentication provides the user identity input to the authorization process which determines what actions the current user is allowed to perform on a given object. No Security
stsadm.exe -o authentication -url <url> -type <windows/forms/websso> [-usebasic (valid only in windows authentication mode)] [-usewindowsintegrated (valid only in windows authentication mode)] [-exclusivelyusentlm (valid only in windows authentication mode)] [-membershipprovider <membership provider name>] [-rolemanager <role manager name>] [-enableclientintegration] [-allowanonymous] |
Describes how to back up a site collection, an individual database, a Web application, or an entire farm. Yes Admin
For site collection backup: stsadm.exe -o backup -url <url> -filename <filename> [-overwrite]
For catastrophic backup: stsadm.exe -o backup -directory <UNC path> -backupmethod <full | differential> [-item <created path from tree>] [-percentage <integer between 1 and 100>] [-backupthreads <integer between 1 and 10>] [-showtree] [-quiet] |
Displays a history of backup and restore operations that have been run. No Admin
stsadm.exe -o backuphistory
-directory <UNC path>
[-backup]
[-restore] |
Registers a data retrieval service adapter. Yes Admin
stsadm.exe -o binddrservice -servicename <data retrieval service name> -setting <data retrieval services setting> |
Admin stsadm.exe -o blockedfilelist -extension <extension> -add [-url <url>]
stsadm.exe -o blockedfilelist -extension <extension> -delete [-url <url>] |
Yes Content stsadm.exe -o canceldeployment -id <id> |
No Users and Rights stsadm.exe -o changepermissionpolicy -url <url> -userlogin <DOMAIN\name> [-zone <URL zone>] [-username <display name>] [{ -add | -delete } -permissionlevel <permission policy level>] |
Yes Admin stsadm.exe -o copyappbincontent |
Yes Site stsadm.exe -o createadminvs [-admapidname <app pool name>] [-admapidtype <configurableid/NetworkService>] [-admapidlogin <DOMAIN\name>] [-admapidpwd <app pool password>] |
Content stsadm -o createcmsmigrationprofile -profilename <profile name> [-description <description>] [-connectionstring <connection string>] -databaseserver <server> -databasename <name> -databaseuser <username> [-databasepassword <password>] [-auth windowsauth|sqlauth] -destination <url> [-rootchannel <channelname>] [-destinationlocale <LCID>] [-migrateresources onlyused|all] [-migrateacls yes|no] [-emailto <address1;address2>] [-emailon success|failure|none|both] [-keeptemporaryfiles Never|Always|Failure] [-enableeventreceivers yes|no] |
No Users and Rights stsadm.exe -o creategroup -url <url> -name <group name> -description <description> -ownerlogin <DOMAIN\name or group name> [-type member|visitor|owner] |
No Site stsadm.exe -o createsite -url <url> -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>] siteemplate can be one of the following
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
Custom templates added using stsadm must be referenced as _GLOBAL_#number |
Yes Site stsadm.exe -o createsiteinnewdb -url <url> -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>] [-databaseuser <database username>] [-databasepassword <database password>] [-databaseserver <database server name>] [-databasename <database name>] |
No Site stsadm -o createssp -title <SSP name> -url <Web application url> -mysiteurl <MySite Web application url> -ssplogin <username> -indexserver <index server> -indexlocation <index file path> [-ssppassword <password>] [-sspdatabaseserver <SSP database server>] [-sspdatabasename <SSP database name>] [-sspsqlauthlogin <SQL username>] [-sspsqlauthpassword <SQL password>] [-searchdatabaseserver <search database server>] [-searchdatabasename <search database name>] [-searchsqlauthlogin <SQL username>] [-searchsqlauthpassword <SQL password>] [-ssl <yes|no>] |
No Site stsadm -o createweb -url <url> [-lcid <language>] [-sitetemplate <site template>] [-title <site title>] [-description <site description>] [-convert] [-unique] |
Detects and removes orphaned items from content databases Yes Database
stsadm.exe -o databaserepair -url <url> -databasename <database name> [-deletecorruption] |
Feature stsadm.exe -o deactivatefeature {-filename <relative path to Feature.xml> | -name <feature folder> | -id <feature Id>} [-url <url>] [-force] |
No Forms stsadm -o deactivateformtemplate -url <URL to the site collection> [-formid <form template ID>] [-filename <path to form template file>] |
Enable anonymous email enabled list/library to initiate a workflow Yes Properties stsadm.exe –o setproperty –propertyname declarativeworkflowautostartonemailenabled –propertyvalue yes |
Yes Site
stsadm.exe -o deleteadminvs |
No URL
stsadm.exe -o deletealternatedomain -url <ignored> -incomingurl <protocol://incoming.url.domain> |
Content stsadm -o deletecmsmigrationprofile -profilename <profile name> |
Yes Database stsadm.exe -o deleteconfigdb |
Database stsadm.exe -o deletecontentdb -url <url> -databasename <database name> [-databaseserver <database server name>] |
No Users and Rights stsadm.exe -o deletegroup -url <url> -name <group name> |
No URL
stsadm.exe -o deletepath -url <url> |
No Users and Rights stsadm.exe -o deletepermissionpolicy -url <url> -userlogin <login name> [-zone <URL zone>] |
No Site stsadm -o deletesite -url <url> -deleteadaccounts <true/false> |
Yes Solution stsadm.exe -o deletesolution -name <Solution name> [-override] [-lcid <language>] |
No Site stsadm -o deletessp -title <SSP name> [-deletedatabases] |
No Schedule
stsadm -o deletessptimerjob -title <SSP Name> -jobid <SSP Timer Job Id> |
Template stsadm.exe -o deletetemplate -title <template title> [-lcid <language>] |
No Users and Rights stsadm.exe -o deleteuser -url <url> -userlogin <DOMAIN\name> [-group <group>] |
Site |
Yes Web Parts stsadm.exe -o deletewppack -name <name of Web Part Package> [-lcid <language>] [-url <url>] |
No URL stsadm.exe -o deletezoneurl -url <protocol://existing.WebApplication.URLdomain> -urlzone <default, extranet, internet, intranet, custom> -resourcename <non-web application resource name> |
Yes Solution stsadm.exe -o deploysolution -name <Solution name> [-url <virtual server url>] [-allcontenturls] [-time <time to deploy at>] [-immediate] [-local] [-allowgacdeployment] [-allowcaspolicies] [-lcid <language>] [-force] |
Yes Web Parts stsadm.exe -o deploywppack -name <Web Part Package name> [-url <virtual server url>] [-time <time to deploy at>] [-immediate] [-local] [-lcid <language>] [-globalinstall] [-force] |
Enable the SharePoint 2010 Developer Dashboard No Admin stsadm –o setproperty –pn developer-dashboard –pv (On |Off | OnDemand ) |
No Site
stsadm -o disablessc -url <url> |
Yes Solution stsadm.exe -o displaysolution -name <Solution name> |
Content stsadm -o editcmsmigrationprofile -profilename <profile name> [-description <description>] [-connectionstring <connection string>] [-databaseserver <server>] [-databasename <name>] [-databaseuser <username>] [-databasepassword <password>] [-auth sqlauth|windowsauth] [-emailto <address1;address2>] [-emailon success|failure|none|both] [-excludeschema ] [-keeptemporaryfiles Never|Always|Failure] [-enableeventreceivers yes|no] |
Content stsadm -o editcontentdeploymentpath -pathname <path name> [-keeptemporaryfiles Never|Always|Failure] [-enableeventreceivers yes|no] [-enablecompression yes|no] |
stsadm -o editssp -title <SSP name> [-newtitle] <new SSP name> [-sspadminsite] <administration site URL> [-ssplogin] <user name> [-ssppassword] <password> [-indexserver] <index server> [-indexlocation] <index file path> [-setaccounts] <process accounts (domain\username)> [-ssl] <yes|no> No Site |
Admin |
No URL stsadm -o enablecmsurlredirect -profilename <profile name> -off |
No Site stsadm -o enablessc -url <url> [-requiresecondarycontact] |
Displays the IDs and site map status for all site collections and subsites in the content database. Yes Admin
stsadm -o enumallwebs
-databasename <database name> [-databaseserver <database server name>] |
No URL
stsadm.exe -o enumalternatedomains -url <protocol://existing.WebApplication.URLdomain> -resourcename <non-web application resource name> |
Database stsadm.exe -o enumcontentdbs -url <url> |
No Security stsadm -o enumdataconnectionfiledependants -filename <filename for which to enumerate dependants> |
No Security stsadm -o enumdataconnectionfiles [-mode <a | u | all | unreferenced>] |
No Content stsadm.exe -o enumdeployments |
No Forms stsadm -o enumexemptuseragents
|
No Forms stsadm -o enumformtemplates |
No Users and Rights stsadm.exe -o enumgroups -url <url> |
No Users and Rights stsadm.exe -o enumroles -url <url> |
Admin stsadm.exe -o enumservices |
No Site stsadm -o enumsites -url <virtual server url> -showlocks -redirectedsites |
Yes Solution stsadm.exe -o enumsolutions |
No Site stsadm -o enumssp -title <SSP name> [-default | -parent | -all] |
No Schedule
stsadm -o enumssptimerjobs -title <SSP Name> |
No Site stsadm.exe -o enumsubwebs -url <url> |
Yes Template stsadm.exe -o enumtemplates [-lcid <language>] |
No Users and Rights stsadm.exe -o enumusers -url <url> |
Yes Web Parts stsadm.exe -o enumwppacks [-name <name of Web Part Package>] [-url <virtual server url>] [-farm] |
No URL stsadm.exe -o enumzoneurls -url <protocol://existing.WebApplication.URLdomain> -resourcename <non-web application resource name> |
Yes Schedule
stsadm.exe -o execadmsvcjobs |
Yes Admin stsadm.exe -o export -url <URL to be exported> -filename <export file name> [-overwrite] [-includeusersecurity] [-haltonwarning] [-haltonfatalerror] [-nologfile] [-versions <1-4> 1 - Last major version for files and list items (default) 2 - The current version, either the last major or the last minor 3 - Last major and last minor version for files and list items 4 - All versions for files and list items] [-cabsize <integer from 1-1024 megabytes> (default: 25)] [-nofilecompression] [-quiet] |
No Site stsadm.exe -o extendvs -url <url> -ownerlogin <domain\name> -owneremail < someone@example.com> [-exclusivelyusentlm] [-ownername <display name>] [-databaseuser <database user>] [-databaseserver <database server>] [-databasename <database name>] [-databasepassword <database user password>] [-lcid <language>] [-sitetemplate <site template>] [-donotcreatesite] [-description <iis web site name>] [-sethostheader] [-apidname <app pool name>] [-apidtype <configurableid/NetworkService>] [-apidlogin <DOMAIN\name>] [-apidpwd <app pool password>] [-allowanonymous] |
No Site stsadm.exe -o extendvsinwebfarm -url <url> -vsname <web application name> [-exclusivelyusentlm] [-apidname <app pool name>] [-apidtype <configurableid/NetworkService>] [-apidlogin <DOMAIN\name>] [-apidpwd <app pool password>] [-allowanonymous] |
Yes Site stsadm.exe -o forcedeleteweb -url <url> |
No Forms stsadm -o formtemplatequiescestatus [-formid <form template ID>] [-filename <path to form template file>] |
Yes Admin stsadm.exe -o getadminport |
No Security stsadm -o getdataconnectionfileproperty -filename <filename of the data connection file> -pn <property name> |
No Forms stsadm -o getformsserviceproperty -pn <option name> |
No Forms stsadm -o getformtemplateproperty [-formid <form template ID>] [-filename <path to form template file>] -pn <property name> |
Yes Properties
stsadm.exe -o getproperty -propertyname <property name> [-url <url>]
SharePoint cluster properties: avallowdownload avcleaningenabled avdownloadscanenabled avnumberofthreads avtimeout avuploadscanenabled command-line-upgrade-running database-command-timeout database-connection-timeout data-retrieval-services-enabled data-retrieval-services-oledb-providers data-retrieval-services-response-size data-retrieval-services-timeout data-retrieval-services-update data-source-controls-enabled dead-site-auto-delete dead-site-notify-after
irmaddinsenabled
irmrmscertserver irmrmsenabled irmrmsusead job-ceip-datacollection job-config-refresh job-database-statistics job-dead-site-delete job-usage-analysis job-watson-trigger large-file-chunk-size token-timeout workflow-cpu-throttle workflow-eventdelivery-batchsize workflow-eventdelivery-throttle workflow-eventdelivery-timeout workflow-timerjob-cpu-throttle workitem-eventdelivery-batchsize workitem-eventdelivery-throttle
SharePoint virtual server properties:
alerts-enabled alerts-limited alerts-maximum change-log-expiration-enabled change-log-retention-period data-retrieval-services-enabled data-retrieval-services-inherit data-retrieval-services-oledb-providers data-retrieval-services-response-size data-retrieval-services-timeout data-retrieval-services-update data-source-controls-enabled days-to-show-new-icon dead-site-auto-delete dead-site-notify-after dead-site-num-notifications defaultquotatemplate defaulttimezone delete-web-send-email job-change-log-expiration job-dead-site-delete job-diskquota-warning job-immediate-alerts job-recycle-bin-cleanup job-usage-analysis
job-workflow job-workflow-autoclean job-workflow-failover max-file-post-size peoplepicker-activedirectorysearchtimeout peoplepicker-distributionlistsearchdomains peoplepicker-nowindowsaccountsfornonwindowsauthenticationmode peoplepicker-onlysearchwithinsitecollection peoplepicker-searchadcustomquery peoplepicker-searchadforests presenceenabled recycle-bin-cleanup-enabled recycle-bin-enabled recycle-bin-retention-period second-stage-recycle-bin-quota send-ad-email |
No Search stsadm -o getsitedirectoryscanschedule |
Yes Site stsadm.exe -o getsitelock -url <url> |
No URL stsadm.exe -o geturlzone -url <protocol://incoming.url.domain> |
Yes Admin stsadm.exe -o import -url <URL to import to> -filename <import file name> [-includeusersecurity] [-haltonwarning] [-haltonfatalerror] [-nologfile] [-updateversions <1-3> 1 - Add new versions to the current file (default) 2 - Overwrite the file and all its versions (delete then insert) 3 - Ignore the file if it exists on the destination] [-nofilecompression] [-quiet] |
Yes Feature stsadm.exe -o installfeature {-filename <relative path to Feature.xml from system feature directory> | -name <feature folder>} [-force] |
No Admin stsadm.exe -o import -url <URL to import to> -filename <import file name> [-includeusersecurity] [-haltonwarning] [-haltonfatalerror] [-nologfile] [-updateversions <1-3> 1 - Add new versions to the current file (default) 2 - Overwrite the file and all its versions (delete then insert) 3 - Ignore the file if it exists on the destination] [-nofilecompression] [-quiet] |
Displays the current values of the SharePoint Search query processor settings. Yes Search stsadm -o listqueryprocessoroptions
-ssp <SSP name> |
No Users and Rights stsadm -o listregisteredsecuritytrimmers
-ssp <ssp name> |
No Admin stsadm.exe -o localupgradestatus |
No Users and Rights stsadm.exe -o managepermissionpolicylevel -url <url> -name <permission policy level name> [{ -add | -delete }] [-description <description>] [-siteadmin <true | false>] [-siteauditor <true | false>] [-grantpermissions <comma-separated list of permissions>] [-denypermissions <comma-separated list of permissions>] |
Yes Database
stsadm.exe -o mergecontentdbs
-url <url>
-sourcedatabase <source database name>
destinationdatabasename <destination database name>
[-operation <1, 2, or 3>]
[-filename <file name that is saved from the stsadm -o enumsites operation>]
Where operation is:
1. Analyze (default)
2. Full database merge
3. Read from file
stsadm.exe -o mergecontentdbs -url "http://site collection URL" -sourcedatabase "source database name" destinationdatabasename "destination database name" [-operation "1"] [-filename "file name"] |
Yes Users and Rights stsadm.exe -o migrateuser -oldlogin <DOMAIN\name> -newlogin <DOMAIN\name> [-ignoresidhistory] |
No Search
stsadm -o osearch
[-action <list|start|stop>] required parameters for 'start' (if not already set): role, farmcontactemail, service credentials [-f (suppress prompts)] [-role <Index|Query|IndexQuery>] [-farmcontactemail <email>] [-farmperformancelevel <Reduced|PartlyReduced|Maximum>] [-farmserviceaccount <DOMAIN\name> (service credentials)] [-farmservicepassword <password>] [-defaultindexlocation <directory>] [-propagationlocation <directory>]
---
SP2
---
[-reprovisionindex] [-cleansearchdatabase <true|false>] [-ssp <ssp name>] required parameter for 'cleansearchdatabase' and 'reprovisionindex' |
Search stsadm -o osearchdiacriticsensitive -ssp <ssp name> [-setstatus <True|False>] [-noreset] |
Used to prepare sites and content databases before moving to a new Web application by setting up the profile and membership synchronization service. This prevents the synchronization service from failing and losing user privacy settings for those sites after the sites are moved.The profile and membership synchronization service synchronizes user profile data down to the user information lists for all site collections to ensure consistent user data across the environment. The service also synchronizes site membership data back to the user profiles that store all of the sites where the user is a member. This site membership data is displayed on the user’s My Site. No Admin
stsadm.exe -o preparetomove {-ContentDB <DatabaseServer:DatabaseName> | -Site <URL>} [-OldContentDB <uniqueidentifier>] [-undo] |
The Pre-Upgrade Checker is a tool that calls an extensible set of routines. The routines can be run against an existing SharePoint 2007 environment that has been updated by using Windows SharePoint Services 3.0 Service Pack 2. The Pre-Upgrade Checker routines are used to determine potential issues that may prevent you from upgrading successfully. The tool also enables IT operations personnel to scan their SharePoint farm in advance and provides feedback on the environment's readiness to upgrade. It also provides information that helps the personnel to fix issues that are discovered by the tool. No Admin stsadm.exe -o preupgradecheck [ -rulefiles <rule files delimited by comma or semicolon.> ] [ -listrulefiles ] [ -localonly ] |
Runs rules that are intended to assist administrators in preparing for upgrade from Windows SharePoint Services 3.0 and related products to future version of SharePoint and Technology products. No Admin stsadm -o preupgradecheck
-[rulefiles <rule file name>] -[listrulefiles] -localonly |
No Users and Rights stsadm -o profilechangelog -title <SSP Name>
-daysofhistory <number of days>
-generateanniversaries |
No Users and Rights stsadm -o profiledeletehandler -type <Full Assembly Path> |
Yes Admin stsadm.exe -o provisionservice -action <start/stop> -servicetype <servicetype (namespace or assembly qualified name if not SharePoint service)> [-servicename <servicename>] |
No Admin
stsadm.exe -o quiescefarm -maxduration <duration in minutes> |
No Admin stsadm -o quiescefarmstatus |
No Forms stsadm -o quiesceformtemplate [-formid <form template ID>] [-filename <path to form template file>] -maxduration <time in minutes> |
No Forms stsadm -o reconvertallformtemplates |
Yes Admin stsadm.exe -o refreshdms -url <url> |
Yes Admin stsadm.exe -o refreshsitedms -url <url> |
No Users and Rights stsadm -o registersecuritytrimmer
-ssp <ssp name> -id <0 - 2147483647> -typename <assembly qualified TypeName of ISecurityTrimmer implementation> -rulepath <crawl rule URL> [-configprops <name value pairs delimited by '~'>]
stsadm -o registersecuritytrimmer -ssp SharedServices1 -id 0 -typeName " Microsoft.Office.Server.ApplicationRegistry.Search.QueryProcessorSecurityTrimmer , Microsoft.SharePoint.Portal, Version=12.0.0.0, Culture=neutral, PublicKeyToken =71e9bce111e9429c" -rulepath bdc2://* -configprops name1~value1~name2~value2 |
Yes Admin stsadm.exe -o registerwsswriter |
No Security stsadm -o removedataconnectionfile -filename <filename to remove> |
No Database stsadm.exe -o removedrservice -servicename <data retrieval service name> -setting <data retrieval services setting> |
No Security stsadm -o remove-ecsfiletrustedlocation -Ssp <SSP name> -Location <URL|UNC> -LocationType SharePoint|Unc|Http |
No Security stsadm -o remove-ecssafedataprovider -Ssp <SSP name> -ID <data provider id> -Type Oledb|Odbc|OdbcDsn |
No Security stsadm -o remove-ecstrusteddataconnectionlibrary -Ssp <SSP name> -Location <URL> |
No Security stsadm -o remove-ecsuserdefinedfunction -Ssp <SSP name> -Assembly <strong name|file path> -AssemblyLocation GAC|File |
No Forms stsadm -o removeexemptuseragent -name <user-agent to receive InfoPath files instead of a Web page> |
No Forms stsadm -o removeformtemplate [-formid <form template ID>] [-filename <path to form template file>] |
Yes Solution stsadm.exe -o removesolutiondeploymentlock [-server <server> [-allservers] |
No Admin stsadm.exe -o renameserver -oldservername <oldServerName> -newservername <newServerName> |
To change the URL of a host-named site collection to a new URL. Notes: ( http://support.microsoft.com/kb/939592/) This command is installed by Windows SharePoint Services 3.0 hotfix package: June 29, 2007 • The site collection will remain in the same Web application and content database after the change. • Make sure that the new URL is reachable in the Web application. This includes the protocol scheme, the host name, and the port number. • The new host-named site collection URL must not already be used as an Alternate Access Mappings URL. • You cannot use this tool to convert a host-named site collection to a path-based site collection or to convert a path-based site collection to a host-named site collection. • This tool does not work with a path-based site collection. No Admin
stsadm.exe -o renamesite
-oldurl oldUrl
-newurl newUrl
|
No Site stsadm.exe -o renameweb -url <url> -newname <new subsite name> |
Yes Admin For site collection restore: stsadm.exe -o restore -url <url> -filename <filename> [-hostheaderwebapplicationurl <web application url>] [-overwrite]
For catastrophic restore: stsadm.exe -o restore -directory <UNC path> -restoremethod <overwrite | new> [-backupid <Id from backuphistory, see stsadm -help backuphistory>] [-item <created path from tree>] [-percentage <integer between 1 and 100>] [-showtree] [-suppressprompt] [-username <username>] [-password <password>] [-newdatabaseserver <new database server name>] [-quiet] |
No Admin stsadm -o restoressp -title <SSP name> -url <Web application url> -ssplogin <username> -mysiteurl <MySite Web application url> -indexserver <index server> -indexlocation <index file path> [-keepindex] -sspdatabaseserver <SSP database server> -sspdatabasename <SSP database name> [-ssppassword <password>] [-sspsqlauthlogin <SQL username>] [-sspsqlauthpassword <SQL password>] [-searchdatabaseserver <search database server>] [-searchdatabasename <search database name>] [-searchsqlauthlogin <SQL username>] [-searchsqlauthpassword <SQL password>] [-ssl <yes|no>] |
Yes Solution stsadm.exe -o retractsolution -name <Solution name> [-url <virtual server url>] [-allcontenturls] [-time <time to remove at>] [-immediate] [-local] [-lcid <language>] |
Yes Web Parts stsadm.exe -o retractwppack -name <Web Part Package name> [-url <virtual server url>] [-time <time to retract at>] [-immediate] [-local] [-lcid <language>] |
Content stsadm -o runcmsmigrationprofile -profilename <profile name> [-skipanalyzer ] [-onlyanalyzer ] [-startover ] [-migratesincetime <DateTime string>] [-migrationfolder <path>] [-exportonly ] [-importonly ] [-htmldiff <path>] |
Content stsadm -o runcontentdeploymentjob -jobname <name> [-wait yes|no] [-deploysincetime <datetime>] The <datetime> parameter should be in the format "MM/DD/YY HH:MM:SS" |
Yes Feature stsadm.exe -o scanforfeatures [-solutionid <Id of Solution>] [-displayonly] |
Yes Admin stsadm -o setadminport -port <port> [-ssl] [-admapcreatenew] [-admapidname <app pool name>] |
No Users and Rights stsadm.exe -o setapppassword -password <password> |
No Schedule
stsadm -o setbulkworkflowtaskprocessingschedule -schedule <recurrence string> |
Yes Database
stsadm.exe -o setconfigdb [-connect] -databaseserver <database server> [-databaseuser <database user>] [-databasepassword <database user password>] [-databasename <database name>] [-exclusivelyusentlm] [-farmuser] [-farmpassword] [-adcreation] [-addomain <Active Directory domain>] [-adou <Active Directory OU>] stsadm.exe -o setconfigdb -connect -ds Server1 -dn Server1_collab -du User1 -dp password |
Content stsadm -o setcontentdeploymentjobschedule -jobname <name> -schedule <schedule> Schedule Parameter Examples:
"every 5 minutes between 0 and 59" "hourly between 0 and 59" "daily at 15:00:00" "weekly between Fri 22:00:00 and Sun 06:00:00" "monthly at 15 15:00:00" "yearly at Jan 1 15:00:00" |
No Security stsadm -o setdataconnectionfileproperty -filename <filename of the data connection file> -pn <property name> -pv <property value> |
No Site stsadm -o setdefaultssp -title <SSP name> |
No Security stsadm -o set-ecsexternaldata -Ssp <SSP name> [-ConnectionLifetime <time in seconds>] [-UnattendedServiceAccountName <account name>] [-UnattendedServiceAccountPassword <account password>]
|
No Excel Services stsadm -o set-ecsloadbalancing -Ssp <SSP name> [-Scheme WorkbookUrl|RoundRobin|Local] [-RetryInterval <time in seconds>] |
No Excel Services stsadm -o set-ecsmemoryutilization -Ssp <SSP name> [-MaxPrivateBytes <memory in MBytes>] [-MemoryCacheThreshold <percentage>] [-MaxUnusedObjectAge <time in minutes>] |
No Excel Services stsadm -o set-ecssecurity -Ssp <SSP name> [-FileAccessMethod UseImpersonation|UseFileAccessAccount] [-AccessModel Delegation|TrustedSubsystem] [-RequireEncryptedUserConnection False|True] [-AllowCrossDomainAccess True|False] |
No Excel Services stsadm -o set-ecssessionmanagement -Ssp <SSP name> [-MaxSessionsPerUser <number of sessions>] |
No Excel Services stsadm -o set-ecsworkbookcache -Ssp <SSP name> [-Location <local or UNC path>] [-MaxCacheSize <storage in Mbytes>] [-EnableCachingOfUnusedFiles True|False] |
Yes Forms
stsadm -o setformsserviceproperty -pn <option name> -pv <option value>
Option Names:
DefaultDataConnectionTimeout MaxDataConnectionTimeout MaxDataConnectionResponseSize RequireSslForDataConnections AllowEmbeddedSqlForDataConnections AllowUdcAuthenticationForDataConnections AllowUserFormCrossDomainDataConnections AllowUserFormBrowserEnabling AllowUserFormBrowserRendering AllowViewState ViewStateThreshold ShowProgressRolesManager AllowBranding
You can use stsadm -o getformsserviceproperty -pn to see what the default values are
To turn off the logo stsadm -o setformsserviceproperty -pn AllowBranding -pv false |
No Forms stsadm -o setformtemplateproperty [-formid <form template ID>] [-filename <path to form template file>] -pn <property name> -pv <property value> |
No Schedule
stsadm -o setholdschedule -schedule <recurrence string> |
No Admin stsadm.exe -o setlogginglevel [-category < [CategoryName | Manager:CategoryName [;...]] >] {-default | -tracelevel < None; Unexpected; Monitorable; High; Medium; Verbose; > [-windowslogginglevel < None; ErrorServiceUnavailable; ErrorSecurityBreach; ErrorCritical; Error; Warning; FailureAudit; SuccessAudit; Information; Success; >] } |
No Schedule
stsadm -o setpolicyschedule -schedule <recurrence string> |
Yes Properties stsadm.exe -o setproperty -propertyname <property name> -propertyvalue <property value> [-url <url>] |
Sets the current values of the SharePoint Search query processor settings. Yes Search
stsadm -o setqueryprocessoroptions -ssp <ssp name> [-securitytrimmingcachesize <security trimming cache size>] [-securitytrimmingmultiplier <security trimming overfetch multiplier>] [-nearduplicatemultiplier <duplicate removal overfetch multiplier>] [-joinmultiplier <join discard overfetch multiplier>] [-sdidjoinmultiplier <missing security descriptor overfetch multiplier>] |
No Search stsadm -o setsitedirectoryscanschedule -schedule <recurrence string> Schedule parameter examples: "every 5 minutes between 0 and 59" "hourly between 0 and 59" "daily at 15:00:00" "weekly between Fri 22:00:00 and Sun 06:00:00" "monthly at 15 15:00:00" "yearly at Jan 1 15:00:00" |
Search stsadm -o setsearchandprocessschedule -schedule <recurrence string> |
No Security stsadm -o setsharedwebserviceauthn -ntlm | -negotiate |
No Schedule
stsadm -o setsitedirectoryscanschedule -schedule <recurrence string>
Schedule parameter examples: "every 5 minutes between 0 and 59", "hourly between 0 and 59", "daily at 15:00:00", "weekly between Fri 22:00:00 and Sun 06:00:00", "monthly at 15 15:00:00", "yearly at Jan 1 15:00:00" |
No Site stsadm.exe -o setsitelock -url <url> -lock <none | noadditions | readonly | noaccess> |
Set restrictions on a site collection to allow only users in a particular organizational unit. No Security
stsadm.exe –o setsiteuseraccountdirectorypath
-url site collection url
-path OU path
stsadm.exe -o setsiteuseraccountdirectorypath –url http://server/sites/s1 -path "OU=MSCRM,DC=redmond,DC=corp,DC=microsoft,DC=com" |
No Admin stsadm -o setsspport -httpport <HTTP port number> -httpsport <HTTPS port number> |
Yes Admin stsadm -o setworkflowconfig -url <url> {-emailtonopermissionparticipants <enable|disable> | -externalparticipants <enable|disable> | -userdefinedworkflows <enable|disable> } |
No Site stsadm.exe -o siteowner -url <url> [-ownerlogin <DOMAIN\name>] [-secondarylogin <DOMAIN\name>] |
No Search
stsadm -o spsearch
[-action <list|start|stop|attachcontentdatabase|detachcontentdatabase|fullcrawlstart|fullcrawlstop>] [-f (suppress prompts)] [-farmperformancelevel <Reduced|PartlyReduced|Maximum>] [-farmserviceaccount <DOMAIN\name> (service credentials)] [-farmservicepassword <password>] [-farmcontentaccessaccount <DOMAIN\name>] [-farmcontentaccesspassword <password>] [-indexlocation <new index location>] [-databaseserver <server\instance> (default: community)] [-databasename <database name> (default: WSS_Search_community_rtm)] [-sqlauthlogin <SQL authenticated database user>] [-sqlauthpassword <password>]
-action list
-action stop [-f (suppress prompts)]
-action start -farmserviceaccount <DOMAIN\name> (service credentials) [-farmservicepassword <password>]
-action attachcontentdatabase [-databaseserver <server\instance> (default: community)] -databasename <content database name> [-searchserver <search server name> (default: community)]
-action detachcontentdatabase [-databaseserver <server\instance> (default: community)] -databasename <content database name> [-f (suppress prompts)]
-action fullcrawlstart
-action fullcrawlstop
-farmserviceaccount is the server farm account. -farmcontentaccessaccount is the Office SharePoint Services Search service account. For -databaseserver, if you are using the default instance of SQL Server, you only have to specify the name of the computer running SQL Server. |
Yes Search stsadm -o spsearchdiacriticsensitive [-setstatus <True|False>] [-noreset] [-force] |
No Schedule
stsadm -o sync {-ExcludeWebApps <web applications> | -SyncTiming <schedule(M/H/D:value)> | -SweepTiming <schedule(M/H/D:value)> | -ListOldDatabases <days> | -DeleteOldDatabases <days>} |
Yes Solution stsadm.exe -o syncsolution -name <Solution name>] [-lcid <language>] [-alllcids]
stsadm.exe -o syncsolution -allsolutions |
Lets an administrator delete audit entries older than a certain date, as specified using the enddate parameter. This operation is available after the Infrastructure Update is installed. Yes Database stsadm -o trimauditlog -url <URL name> -enddate <YYYYMMDD> -databasename <database name> [-databaseserver] <database server name> stsadm -o trimauditlog –enddate 20080704 –databasename WSSContent123456 |
stsadm -o tzmove -name <name of the history tag> -update {all | before} [-date] <YYYYMMDD> -clear No Admin
Enables an administrator to update data that is affected by a change in the start and/or end of daylight saving time (DST). |
No Site
stsadm.exe -o unextendvs -url <url> [-deletecontent] [-deleteiissites] |
Yes Feature stsadm.exe -o uninstallfeature {-filename <relative path to Feature.xml> | -name <feature folder> | -id <feature Id>} [-force] |
Assists an administrator in tracking and controlling permissions for report generation on lists with a certain number of items within an entire farm. This operation was introduced in SharePoint Administration Toolkit version 4.0. Yes Admin stsadm -o unlockfgpreport -URL <URL> [-reapplylock] [-list] |
No Admin |
No Forms stsadm -o unquiesceformtemplate [-formid <form template ID>] [-filename <path to form template file>] |
No Security stsadm -o unregistersecuritytrimmer -ssp <ssp name> -id <0 - 2147483647> |
Yes Admin stsadm -o unregisterwsswriter |
Updates the Web application pool passwords. Do not use to update the Central Admin App Pool. Yes Users and Rights
stsadm.exe -o updateaccountpassword -userlogin <DOMAIN\name> -password <password> [-noadmin] |
This operation enables an administrator to update the Uniform Resource Locator (URL) of a Web application used in alert e-mails after a Web application address changes. This command comes with the SharePoint Administration Toolkit. Yes Admin stsadm -o updatealert
-url <url>
-oldurl
[-nologfile]
[-quiet]
stsadm –o updatealert –url http://cohovineyardandwinery –oldurl http://cohowinery |
Yes Admin stsadm -o updatealerttemplates -url <url> [-filename <filename>] [-lcid <language> |
Updates the Web application pool for the SharePoint Central Administration Web site and the Windows SharePoint Services Timer service (SPTimer). Must be run on the server hosting the Central Admin site. Yes Admin
stsadm -o updatefarmcredentials [-identitytype <configurableid/NetworkService>] [-userlogin <DOMAIN\name>] [-password <password>] [-local [-keyonly]]
|
Enables an administrator to perform bulk updates to quota limits on a site collection. This STSADM extension shipped with the SharePoint Administration Toolkit 4.0 Yes Admin
stsadm -o updatequota -quotaname <quotaTemplateName> [-contentdb <contentDB>] [-nologfile] [-quiet] |
No Admin stsadm -o upgrade {-inplace | -sidebyside } [-url <url>] [-forceupgrade] [-quiet] [-farmuser <farm user>] [-farmpassword <farm user password>] [-reghost] [-sitelistpath <sites xml file>] |
No Forms stsadm -o upgradeformtemplate -filename <path to form template file> [-upgradetype <upgrade type>] |
Yes Solution stsadm.exe -o upgradesolution -name <Solution name> -filename <upgrade filename> [-time <time to upgrade at>] [-immediate] [-local] [-allowgacdeployment] [-allowcaspolicies] [-lcid <language>] |
No Admin stsadm -o upgradetargetwebapplication -url <URL to upgrade> -relocationurl <new URL for non-upgraded content> -apidname <new app pool name> [-apidtype <configurableid/NetworkService>] [-apidlogin <DOMAIN\name>] [-apidpwd <app pool password>] [-exclusivelyusentlm] |
No Forms stsadm -o uploadformtemplate -filename <path to form template file> |
No Users and Rights stsadm.exe -o userrole -url <url> -userlogin <DOMAIN\name> -role <role name> [-add] [-delete] |
The variation features lets an administrator to control the different versions—or variations—of a publishing site or page. Yes Content
stsadm -o variationsfixuptool
-url <source variation site URL> [-scan] [-recurse] [-label] [-fix] [-spawn] [-showrunningjobs] |
No Forms stsadm -o verifyformtemplate -filename <path to form template file> |