What is STSADM?
STSADM stands for Sharepint Team Service Administration, and it's a tool for command line SharePoint administration, as state in this article it's not interactive and MUST be used with administration credentials. It can be combined with batch programming scripts for automation and doubtlessly it's a must learn if you manage SP servers for on the go fixes, creation, etc.
NOTE - I'm aware that this tool will probably be replaced by PowerShell
For Using STSADM :
- Administrators group on the Server credential
- Stsadm does not work remotely (Must be executed on the server)
To use stsadm commands the syntax is composed by the operation and first the mandatory parameters and then the optional one.
stsadm.exe -[operation] [mansatory params] [optional params]
This one is the classic help displaying command line
This one is a bit more elaborated this one enumerates the sites on a server and then export the results to a .txt file that will be located on the \BIN folder (yes the same where the STSADM is located)
Hope this helps. Regards, Art-Uhr