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



The information in this article applies to:

  • SharePoint Team Services from Microsoft
  • FrontPage 2002 Server Extensions from Microsoft

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:

    1. Click Start, point to Programs, and then click Administrative Tools.
    2. Click SharePoint Administrator.
    On Microsoft Windows 2000 Professional, follow these steps:

    1. Click Start, point to Settings, and then click Control Panel.
    2. Double-click Administrative Tools, and then click SharePoint Administrator.
  • Owsadm.exe, which is a command-line-only version of the server administrator

MORE INFORMATION

To view the command-line options for Owsadm.exe, follow these steps:
  1. Click Start, and then click Run.
  2. In the Open box, type cmd and then press ENTER.
  3. 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
				

REFERENCES

For additional information, visit the following Microsoft Web site:

Modification Type:MajorLast Reviewed:8/12/2005
Keywords:kbhowto KB272945