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