Microsoft KB Archive/272945

= STS: Using the SharePoint Team Services Command-Line Utility (Owsadm.exe) =

Article ID: 272945

Article Last Modified on 9/25/2007

-

APPLIES TO


 * Microsoft SharePoint Team Services
 * Microsoft FrontPage 2002 Server Extensions

-



This article was previously published under Q272945



SUMMARY
SharePoint Team Services Administrator is available in two forms:  HTML pages using a SharePoint team Web site's Administrator Pages

On a Microsoft Windows 2000 Server, follow these steps:

 Click Start, point to Programs, and then click Administrative Tools. Click SharePoint Administrator.

On Microsoft Windows 2000 Professional, follow these steps:

 Click Start, point to Settings, and then click Control Panel. Double-click Administrative Tools, and then click SharePoint Administrator. </li> Owsadm.exe, which is a command-line-only version of the server administrator</li></ul>

<div class="moreinformation_section">

MORE INFORMATION
To view the command-line options for Owsadm.exe, follow these steps:  Click Start, and then click Run.</li> In the Open box, type cmd and then press ENTER.</li> At the operating system prompt, go to the \Program Files\Common Files\Microsoft Shared\Web Server Extensions\50\Bin folder, and then type the following:

owsadm.exe -h

</li></ol>

Command-line Options for Owsadm.exe
<pre class="fixed_text">Usage: owsadm.exe [-help] [-operation <install | upgrade | create | merge | uninstall | fulluninstall | check | setDirExec | setDirNoExec | delete | rename | databaseconnection | enable | disable | recalc | putfile | recalcfile | setadminport | roles | anonrole | roleusers | rolerights | users | setproperty | getproperty | deleteproperty | usage | backupdb | restoredb | accountlimits] [-port ] [-web ] [-multihost <hostname or IP address>] [-username ] [-password ] [-ipaddress <IP address>] [-destination <destination Url>] [-filename ] [-propertyname ] [-propertyvalue ] [-name ] [-command ] [-databaseserver ] [-databasename ] [-databaseuser ] [-databasepassword ] [-siteprovision <onet | onethp | collab | publish>] [-access <remove | administrators | authors | users>]

Short form of each option is the first letter, except for -pw for -password, -pn for -propertyname, -pv for -propertyvalue, -cr for cloneright, -cu for cloneusers, -ds for -databaseserver, -dn for -databasename, -du for -databaseuser, -dp for -databasepassword, -sp for -siteprovision

SMTP mail server settings</B>

owsadm -o setproperty -p -pn SMTPHost -pv smarthost Additionally, you can set subscriptions properties with the following: owsadm -o setproperty -p /lm/w3svc/1 -pn MailReplyTo -pv webmaster@owslab1.com owsadm -o setproperty -p /lm/w3svc/1 -pn MailSender -pv robot@owslab11.gov

examples: owsadm.exe -o merge -p 80 -w webname owsadm.exe -o delete -p 80 -w webname owsadm.exe -o rename -p 80 -w webname -d newname owsadm.exe -o setDirExec -p 80 -w webname -d folder owsadm.exe -o roles -p 80 -w webname -n nameofrole -c command -cr rolename -cu owsadm.exe -o anonrole -p 80 -w webname -c enable -n rolename owsadm.exe -o anonrole -p 80 -w webname -c disable -n rolename owsadm.exe -o roleusers -p 80 -w webname -n nameofrole -c command -u usernames owsadm.exe -o users -p 80 -w webname -c command -u username -pw password owsadm.exe -o rolerights -p 80 -w webname -n nameofrole -c command -r rightnames owsadm.exe -o recalc -p 80 -w webname owsadm.exe -o putfile -p 80 -w webname -d url -f filename owsadm.exe -o recalcfile -p 80 -w webname -d url owsadm.exe -o setproperty -p 80 -w webname -pn SourceControlProject -pv &quot;<FrontPage-based Locking>&quot; owsadm.exe -o install -p 80 -u user owsadm.exe -o create -p 80 -w webname owsadm.exe -o setadminport -p 10865 owsadm.exe -o accountlimits -p 80 -limit 10 owsadm.exe -o upgrade -p 80 owsadm.exe -o uninstall -p 80 owsadm.exe -o check -p 80 owsadm.exe -o check -p all owsadm.exe -o disable -p 80 owsadm.exe -o getproperty -pn AccessControl owsadm.exe -o databaseconnection -ds machinename -du accountname -dp accountpassword owsadm.exe -o backupdb -p 80 owsadm.exe -o restoredb -p 80

<div class="references_section">