h) REM 安装solution<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
stsadm -o addsolution -filename Deploy.wsp
i) REM 部署solution
stsadm -o deploysolution -name Deploy.wsp -immediate -allowgacdeployment --allowCasPolicies -url http://wzh
j) REM 安装feature
stsadm -o installfeature -filename ListDefine\feature.xml
k) REM 激活Feature
stsadm -o activatefeature -filename ListDefine\feature.xml -url http://wzh -force
l) REM 安装事件处理程序Feature
stsadm -o activatefeature -filename EventHandler1\feature.xml -url http://wzh/Lists/MyList/AllItems.aspx
m) 将定时任务立马执行
stsadm -o execadmsvcjobs
十七、
a) @REM 删除子站点
b) @REM 删除网站模板
%STSADM% -o deletetemplate -title my教育培训模板
c) @REM 删除SHARPOINT组(角色)
%STSADM% -o deletegroup -url %WEBSITE%教育培训一级管理员
%STSADM% -o deletegroup -url %WEBSITE%教育培训二级管理员
%STSADM% -o deletegroup -url %WEBSITE%教育培训普通员工
d) @REM 删除SharePoint组人员
%STSADM% -o deleteuser -url %WEBSITE%
e) REM 停止Feature
stsadm -o deactivatefeature -filename ListDefine\feature.xml -url http://wzh
f) REM 卸载feature
stsadm -o uninstallfeature -filename ListDefine\feature.xml
g) REM 收回solution
stsadm -o retractsolution -name Deploy.wsp -immediate -url http://wzh
h) 删除solution
stsadm -o deletesolution -name Deploy.wsp