Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved.
Terms
of Use |
Trademarks
Article ID: 272945 - Last Review: September 25, 2007 - Revision: 3.3
STS: Using the SharePoint Team Services Command-Line Utility (Owsadm.exe)
This article was previously published under Q272945
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.
- Owsadm.exe, which is a command-line-only version of the
server administrator
To view the command-line options for Owsadm.exe, follow
these steps:
- Click Start, and then click Run.
- In the Open box, type cmd and then press ENTER.
- 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
Command-line Options for Owsadm.exe
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 <nnnn>]
[-web <web name>]
[-multihost <hostname or IP address>]
[-username <username>]
[-password <password>]
[-ipaddress <IP address>]
[-destination <destination Url>]
[-filename <file name>]
[-propertyname <name of property>]
[-propertyvalue <new value of property>]
[-name <name of role>]
[-command <command to execute>]
[-databaseserver <database server>]
[-databasename <name of database>]
[-databaseuser <user of database>]
[-databasepassword <password of database user>]
[-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 <port> -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 "<FrontPage-based Locking>"
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
For additional information, visit the following Microsoft
Web site:
APPLIES TO
- Microsoft SharePoint Team Services
- Microsoft FrontPage 2002 Server Extensions
Community Feedback System
Very often, it takes hours to solve a problem. Very often, you've looked high
and low, and have tried a lot of solutions. When you finally found it, chances
are, it was because someone else helped you. Here's your chance to give back.
Use our community feedback tool to let others know what worked for you and what
didn't.
Please also understand that the community feedback system is not warranted to be
correct, it's simply a system that we've built to let people try and help each
other. If something in a feedback response doesn't make sense to you, or you're
not comfortable making changes that the feedback talks about (like registry
edits), please consult a professional.
Thank you for using kbAlertz.com Feedback System.
-- Scott Cate
Be the first to leave feedback, to help others about this knowledge base
article.
(Optional) Name
(Optional)
Public URL Or Email
Comments
No
HTML -- Text Only Please