SharePoint
2010/07 stsadm commands
Just
like to share with you guys, some useful stsadm commends
stsadm.exe -o addpath -url http://server/sites -type wildcardinclusion
stsadm.exe -o adduser
-url http://server/site
-userlogin DOMAIN\name
-useremail someone@example.com
-role reader
-username "Your Name"
-siteadmin
stsadm.exe -o backup -url http://server/site -filename backup.dat
-overwrite
stsadm.exe -o backup -directory c:\backup
-backupmethod full
stsadm.exe -o createsite -url http://server/site
-ownerlogin DOMAIN\name
-owneremail someone@example.com
stsadm.exe -o createweb -url http://server/site/web
stsadm.exe -o deletesite -url http://server/site
stsadm.exe -o deleteweb -url http://server/site/web
stsadm.exe -o enumsites -url http://server
stsadm.exe -o enumsubwebs -url http://server/site/web
stsadm.exe -o enumusers -url http://server/site/web
stsadm.exe -o extendvs -url http://server:80
-ownerlogin DOMAIN\name
-owneremail someone@example.com
stsadm.exe -o renameweb -url http://server/site/web1 -newname web2
stsadm.exe -o restore -url http://server/site -filename backup.dat
stsadm.exe -o restore -directory c:\backup
-restoremethod overwrite
stsadm.exe -o setconfigdb -databaseserver
server
stsadm.exe -o unextendvs -url http://server
For information about other operations and
parameters,
Use "stsadm.exe -help" or
"stsadm.exe -help <operation>"
No comments:
Post a Comment