From : http://blog.sina.com.cn/s/blog_64bdb8240100nyg5.html
以下命令须在C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN下运行,而且必须是管理员身份!
常用的stsadm命令行参数有:
1、installfeature、uninstallfeature:feature部署和卸载;
还有就是:“主机标头”可以不是计算机名,但是有时创建Web Application时会出错,所以还是用计算机名比较好。也不知到为什么会出错。
2、addwppack、deletewppack:webpart和*.cab部署和卸载;
3、addtemplate、deleteremplate:template(模板)的部署和卸载;
4、addsolution、deletesolution:solution部署和卸载;
5、Solution的部署与删除:
打开“命令提示符”窗口,输入:
cd
stsadm -o addsolution -filename c:\MeetingTemplate.wsp
stsadm -o deploysolution -name MeetingTemplate.wsp -allowgacdeployment -immediate
stsadm.exe -o retractsolution
stsadm.exe -o deletesolution -name MeetingTemplate.wsp
也可以强制删除
6.
激活feature
stsadm -o activatefeature -filename MeetingTemplate\feature.xml -url http://test:9001/sites/portail
特别注意的地方 -url
7、getlock、setlock:用于在备份backup site collection时访问限制;