Despite the advances in the Central Administration graphical user interface, there are times when the command-line tool Stsadm.exe is either the most appropriate or the only way to accomplish certain tasks. For example, you can set the Indexing service logging levels, automate farm-level backups, or set the maximum [import|export] limits only by using Stsadm.exe. In addition, you can write administrative scripts that include several Stsadm.exe commands to automate processes.
Stsadm.exe is located in the 12 Hive's Bin directory, C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\Bin. A number of Stsadm.exe commands are included in this book. This appendix serves as a quick reference, presenting the commands in alphabetical order with short descriptions. Remember that all of the commands listed here must be prefaced with stsadm.exe -o.
| stsadm.exe -o | Description | Page(s) |
|---|---|---|
| addsolution | Add a solution to the Solution Store | 328 |
| addtemplate | Add template to all site collections in farm | 112 |
| addwppack | Add Web Part from .cab file | 124 |
| addzoneurl | Associate zone with URL | 33 |
| authentication | Change authentication for Web application | 33 |
| backup | Back up sites and site collections | 18, 343, 354–355, 356 |
| backuphistory | Show history of backups and backup IDs | 356 |
| blockedfilelist | Block/unblock files with a given extension | 90, 175 |
| createadminvs | Return Central Administration URL | 29 |
| createsiteinnewdb | Create site in standalone content database | 79 |
| deletetemplate | Delete a template from the Central Gallery | 112 |
| deletezoneurl | Delete zone from URL | 33 |
| deletewppack | Delete Web Part package | 125 |
| deploysolution | Deploy a solution stored in the Solution Store | 328 |
| deploywppack | Deploy Web Part package | 125 |
| | Configure outbound e-mail settings | 71 |
| enumalternatedomains | List alternate domain mappings | 68 |
| enumservices | List all running Web and server services | 57 |
| enumsolutions | List all solutions in the Solution Store | 328 |
| enumtemplates | List all templates in the Central Gallery | 112 |
| enumusers | Enumerate all users for a site collection | 86 |
| enumwppacks | List all Web Part packages on server | 124 |
| export | Export using site migration tool | 343, 348, 349 |
| getadminport | Return Central Administration port | 29 |
| getproperty | Get configuration settings for sites | 18 |
| import | Import using site migration tool | 343, 348, 350 |
| installfeature | Deploy multiple page layouts as a feature | 255 |
| listlogginglevels | List current logging categories and trace levels | 374 |
| osearch | Modify SharePoint search settings; change index or propagation directories | 42, 333 |
| quiescefarm | Disallow new, keep existing connections | 68 |
| quiescefarmstatus | Show Quiesce Farm status | 68 |
| refreshdms | Synchronize Web application with Active Directory | 59 |
| refreshsitedms | Synchronize site with Active Directory | 59 |
| renameweb | Rename sites | 18 |
| restore | Restore site collection or directory | 343, 356, 357 |
| retractsolution | Retract solution from virtual servers | 328 |
| retractwppack | Retract Web Part package | 125 |
| setadminport | Set port number for Central Administration | 40, 182 |
| setdefaultssp | Change the default Shared Services provider | 193 |
| set-ecsexternaldata | Set external data options for Excel Calculation Services | 283 |
| set-ecsloadbalancing | Set load balancing for Excel Calculation Services | 282 |
| set-ecsmemoryutilization | Set Excel Calculation Services memory utilization | 283 |
| set-ecssecurity | Set encryption for Excel Calculation Services | 281 |
| set-ecssessionmanagement | Configure Session Management for Excel Calculation Services | 282 |
| set-ecsworkbookcache | Set temporary storage for workbook elements | 283 |
| setlogginglevel | Set trace levels for individual logging categories | 374–375 |
| setproperty -pn max-template-document-size | Set the maximum size for site templates | 349 |
| setsitelock | Set access restrictions for site | 79 |
| setsspport | Change the Shared Services Provider port | 189 |
| unquiescefarm | Allow new connections to farm | 68 |
| updatefarmcredentials | Modify the server farm account | 62 |