SharePoint 2007 STSADM Overview

Written By: Matt Takhar -- 1/5/2011 -- join -- contribute -- (4018) comments -- printer friendly version

Rating: Rate --

Categories: MOSS 2007, System Administration, WSS3

< Prev - 1 | 2 | - Next > | Become a paid author

Operations and help

Often overlooked... 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!

Next Steps

  • 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 for great information about Microsoft SQL Server.

< Prev - 1 | 2 | - Next >

Learn more about SharePoint

Sponsor Information

Copyright (c) 2010-2017 Edgewood Solutions, LLC All rights reserved
privacy | disclaimer | copyright | advertise | contribute | feedback | about
Some names and products listed are the registered trademarks of their respective owners. |