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