SharePoint 2007 STSADM Overview
Written By: Matt Takhar -- 1/5/2011 --
(1540) comments --
Categories: MOSS 2007, System Administration, WSS3
< Prev -
- Next >
| Become a paid author
Operations and help
STSADM has help built in!
This is extremely useful especially if you are working on a server which is not allowed internet access. You can get help on the operation you are trying to execute by entering
STSADM -help <operation name>
For example STSADM -help import, displays this:
This help output shows me I have to provide the -url and -filename parameters but all the other parameters surrounded by square brackets  are optional!
Here is a valid command using only the required parameters:
STSADM -o import -url http://sharepoint/HR -filename c:\temp\hr.cmp
Note: we have changed the -help parameter to -o. The o is short for operation.
Here is another example using one of the optional parameters:
STSADM -o import -url http://sharepoint/HR -filename c:\temp\hr.cmp -includeusersecurity
By the way, this particular command is great for exporting and importing sites across farms. The includeuserssecurity retains the permission structure on the import!
Here are a few other STSADM commands I use.
Review the deployed solution on the farm - help here
STSADM -o enumsolutions
Rename server - help here
STSADM -o renameserver -oldservername <oldservername> -newservername <newservername>
Manage the Office SharePoint Search- help here
STSADM -o search -action list
One last word of caution. Make sure you are very careful when using STSADM - you can break your SharePoint!
< Prev -
- Next >
- Review the Microsoft STSADM help here
- Read the rest of my tips here
- Note: While this article shows the command (STSADM) in uppercase, the
command is not case sensitive. Both STSADM and stsadm are correct.
- Return to
MSSharepointTips to read about other topics and ideas.
- Check out MSSQLTips.com for great
information about Microsoft SQL Server.