安装SHAREPOINT 模板,在网上下了个BAT文件,内容如下:
Code
@ECHO OFF
ECHO **********************************
ECHO.开始WSS3.0模版安装(请将模版文件存放在D:\ServerAdminTemplates目录)
ECHO **********************************
pause
cls
set path=%path%;C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN
stsadm -o addsolution -filename D:\ServerAdminTemplates\applicationtemplatecore.wsp
stsadm -o deploysolution -name applicationtemplatecore.wsp -allowgacdeployment -immediate
stsadm -o copyappbincontent
ECHO "应用程序模板核心解决方案"应用成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\AbsenceVacationSchedule.wsp
stsadm -o deploysolution -name AbsenceVacationSchedule.wsp -allowgacdeployment -immediate
ECHO AbsenceVacationSchedule.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\BudgetingTrackingMultipleProjects.wsp
stsadm -o deploysolution -name BudgetingTrackingMultipleProjects.wsp -allowgacdeployment -immediate
ECHO BudgetingTrackingMultipleProjects.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\BugDatabase.wsp
stsadm -o deploysolution -name BugDatabase.wsp -allowgacdeployment -immediate
ECHO BugDatabase.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\CallCenter.wsp
stsadm -o deploysolution -name CallCenter.wsp -allowgacdeployment -immediate
ECHO CallCenter.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\ChangeRequest.wsp
stsadm -o deploysolution -name ChangeRequest.wsp -allowgacdeployment -immediate
ECHO ChangeRequest.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\ComplianceProcessSupport.wsp
stsadm -o deploysolution -name ComplianceProcessSupport.wsp -allowgacdeployment -immediate
ECHO ComplianceProcessSupport.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\ContactsManagement.wsp
stsadm -o deploysolution -name ContactsManagement.wsp -allowgacdeployment -immediate
ECHO ContactsManagement.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\DocumentLibraryReview.wsp
stsadm -o deploysolution -name DocumentLibraryReview.wsp -allowgacdeployment -immediate
ECHO DocumentLibraryReview.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\EventPlanning.wsp
stsadm -o deploysolution -name EventPlanning.wsp -allowgacdeployment -immediate
ECHO EventPlanning.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\ExpenseReimbursementApproval.wsp
stsadm -o deploysolution -name ExpenseReimbursementApproval.wsp -allowgacdeployment -immediate
ECHO ExpenseReimbursementApproval.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\HelpDesk.wsp
stsadm -o deploysolution -name HelpDesk.wsp -allowgacdeployment -immediate
ECHO HelpDesk.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\InventoryTracking.wsp
stsadm -o deploysolution -name InventoryTracking.wsp -allowgacdeployment -immediate
ECHO InventoryTracking.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\ITTeamWorkspace.wsp
stsadm -o deploysolution -name ITTeamWorkspace.wsp -allowgacdeployment -immediate
ECHO ITTeamWorkspace.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\JobRequisition.wsp
stsadm -o deploysolution -name JobRequisition.wsp -allowgacdeployment -immediate
ECHO JobRequisition.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\KnowledgeBase.wsp
stsadm -o deploysolution -name KnowledgeBase.wsp -allowgacdeployment -immediate
ECHO KnowledgeBase.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\LendingLibrary.wsp
stsadm -o deploysolution -name LendingLibrary.wsp -allowgacdeployment -immediate
ECHO LendingLibrary.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\PhysicalAssetTracking.wsp
stsadm -o deploysolution -name PhysicalAssetTracking.wsp -allowgacdeployment -immediate
ECHO PhysicalAssetTracking.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\ProjectTrackingWorkspace.wsp
stsadm -o deploysolution -name ProjectTrackingWorkspace.wsp -allowgacdeployment -immediate
ECHO ProjectTrackingWorkspace.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\RoomEquipmentReservations.wsp
stsadm -o deploysolution -name RoomEquipmentReservations.wsp -allowgacdeployment -immediate
ECHO RoomEquipmentReservations.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\SalesLeadPipeline.wsp
stsadm -o deploysolution -name SalesLeadPipeline.wsp -allowgacdeployment -immediate
ECHO SalesLeadPipeline.wsp模版安装成功
ECHO *****************
ECHO 全部模版安装成功
ECHO *****************
pause
@ECHO OFF
ECHO **********************************
ECHO.开始WSS3.0模版安装(请将模版文件存放在D:\ServerAdminTemplates目录)
ECHO **********************************
pause
cls
set path=%path%;C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN
stsadm -o addsolution -filename D:\ServerAdminTemplates\applicationtemplatecore.wsp
stsadm -o deploysolution -name applicationtemplatecore.wsp -allowgacdeployment -immediate
stsadm -o copyappbincontent
ECHO "应用程序模板核心解决方案"应用成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\AbsenceVacationSchedule.wsp
stsadm -o deploysolution -name AbsenceVacationSchedule.wsp -allowgacdeployment -immediate
ECHO AbsenceVacationSchedule.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\BudgetingTrackingMultipleProjects.wsp
stsadm -o deploysolution -name BudgetingTrackingMultipleProjects.wsp -allowgacdeployment -immediate
ECHO BudgetingTrackingMultipleProjects.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\BugDatabase.wsp
stsadm -o deploysolution -name BugDatabase.wsp -allowgacdeployment -immediate
ECHO BugDatabase.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\CallCenter.wsp
stsadm -o deploysolution -name CallCenter.wsp -allowgacdeployment -immediate
ECHO CallCenter.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\ChangeRequest.wsp
stsadm -o deploysolution -name ChangeRequest.wsp -allowgacdeployment -immediate
ECHO ChangeRequest.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\ComplianceProcessSupport.wsp
stsadm -o deploysolution -name ComplianceProcessSupport.wsp -allowgacdeployment -immediate
ECHO ComplianceProcessSupport.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\ContactsManagement.wsp
stsadm -o deploysolution -name ContactsManagement.wsp -allowgacdeployment -immediate
ECHO ContactsManagement.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\DocumentLibraryReview.wsp
stsadm -o deploysolution -name DocumentLibraryReview.wsp -allowgacdeployment -immediate
ECHO DocumentLibraryReview.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\EventPlanning.wsp
stsadm -o deploysolution -name EventPlanning.wsp -allowgacdeployment -immediate
ECHO EventPlanning.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\ExpenseReimbursementApproval.wsp
stsadm -o deploysolution -name ExpenseReimbursementApproval.wsp -allowgacdeployment -immediate
ECHO ExpenseReimbursementApproval.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\HelpDesk.wsp
stsadm -o deploysolution -name HelpDesk.wsp -allowgacdeployment -immediate
ECHO HelpDesk.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\InventoryTracking.wsp
stsadm -o deploysolution -name InventoryTracking.wsp -allowgacdeployment -immediate
ECHO InventoryTracking.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\ITTeamWorkspace.wsp
stsadm -o deploysolution -name ITTeamWorkspace.wsp -allowgacdeployment -immediate
ECHO ITTeamWorkspace.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\JobRequisition.wsp
stsadm -o deploysolution -name JobRequisition.wsp -allowgacdeployment -immediate
ECHO JobRequisition.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\KnowledgeBase.wsp
stsadm -o deploysolution -name KnowledgeBase.wsp -allowgacdeployment -immediate
ECHO KnowledgeBase.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\LendingLibrary.wsp
stsadm -o deploysolution -name LendingLibrary.wsp -allowgacdeployment -immediate
ECHO LendingLibrary.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\PhysicalAssetTracking.wsp
stsadm -o deploysolution -name PhysicalAssetTracking.wsp -allowgacdeployment -immediate
ECHO PhysicalAssetTracking.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\ProjectTrackingWorkspace.wsp
stsadm -o deploysolution -name ProjectTrackingWorkspace.wsp -allowgacdeployment -immediate
ECHO ProjectTrackingWorkspace.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\RoomEquipmentReservations.wsp
stsadm -o deploysolution -name RoomEquipmentReservations.wsp -allowgacdeployment -immediate
ECHO RoomEquipmentReservations.wsp模版安装成功
stsadm -o addsolution -filename D:\ServerAdminTemplates\SalesLeadPipeline.wsp
stsadm -o deploysolution -name SalesLeadPipeline.wsp -allowgacdeployment -immediate
ECHO SalesLeadPipeline.wsp模版安装成功
ECHO *****************
ECHO 全部模版安装成功
ECHO *****************
pause
在安装时报错,在SHAREPOINT的新建网站集中也没有新安装的模板,只能把之前安装的模板卸载之后重新安装。
卸载步骤:
先用enumsolutions命令选项将安装结果导入到XML文件
Code
C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN>stsa
dm -o enumsolutions >D:\tool\Sharepoint\Template\content.xml
C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN>stsa
dm -o enumsolutions >D:\tool\Sharepoint\Template\content.xml
导出的文件如下:
Code
<Solutions Count="21">
<Solution Name="absencevacationschedule.wsp">
<Id>d9d569e3-ec65-4e38-a1b0-b3b3ff1aef8e</Id>
<File>absencevacationschedule.wsp</File>
<Deployed>FALSE</Deployed>
<WebApplicationSpecific>FALSE</WebApplicationSpecific>
<ContainsGlobalAssembly>FALSE</ContainsGlobalAssembly>
<ContainsCodeAccessSecurityPolicy>FALSE</ContainsCodeAccessSecurityPolicy>
<SolutionDeploymentJob id="b30f5076-28e5-4e0d-b628-9f7780fea44c">
<Title>“absencevacationschedule.wsp”的 Windows SharePoint Services 解决方案部署</Title>
<Type>Deployment</Type>
<State>已失败</State>
</SolutionDeploymentJob>
</Solution>
<Solution Name="applicationtemplatecore.wsp">
<Id>0273f170-f34b-4f05-9973-494e875dee24</Id>
<File>applicationtemplatecore.wsp</File>
<Deployed>TRUE</Deployed>
<WebApplicationSpecific>FALSE</WebApplicationSpecific>
<ContainsGlobalAssembly>TRUE</ContainsGlobalAssembly>
<ContainsCodeAccessSecurityPolicy>FALSE</ContainsCodeAccessSecurityPolicy>
<LastOperationResult>DeploymentSucceeded</LastOperationResult>
<LastOperationTime>2009-3-1 23:17</LastOperationTime>
</Solution>
<Solution Name="budgetingtrackingmultipleprojects.wsp">
<Id>25d59dca-500c-41c0-bc5d-1894b9bb1e11</Id>
<File>budgetingtrackingmultipleprojects.wsp</File>
<Deployed>FALSE</Deployed>
<WebApplicationSpecific>FALSE</WebApplicationSpecific>
<ContainsGlobalAssembly>FALSE</ContainsGlobalAssembly>
<ContainsCodeAccessSecurityPolicy>FALSE</ContainsCodeAccessSecurityPolicy>
<SolutionDeploymentJob id="703cbf48-df14-4d99-a843-f16a24fd5a1d">
<Title>“budgetingtrackingmultipleprojects.wsp”的 Windows SharePoint Services 解决方案部署</Title>
<Type>Deployment</Type>
<State>已失败</State>
</SolutionDeploymentJob>
</Solution>
<Solution Name="bugdatabase.wsp">
<Id>0e2f7540-e92f-4eb2-b916-cb2364c3941c</Id>
<File>bugdatabase.wsp</File>
<Deployed>FALSE</Deployed>
<WebApplicationSpecific>FALSE</WebApplicationSpecific>
<ContainsGlobalAssembly>FALSE</ContainsGlobalAssembly>
<ContainsCodeAccessSecurityPolicy>FALSE</ContainsCodeAccessSecurityPolicy>
<SolutionDeploymentJob id="b6869607-22a1-4351-8524-427f99619c80">
<Title>“bugdatabase.wsp”的 Windows SharePoint Services 解决方案部署</Title>
<Type>Deployment</Type>
<State>已失败</State>
</SolutionDeploymentJob>
</Solution>
<Solution Name="callcenter.wsp">
<Id>08ec3335-c9b0-458b-a848-6d739b6a74e5</Id>
<File>callcenter.wsp</File>
<Deployed>FALSE</Deployed>
<WebApplicationSpecific>FALSE</WebApplicationSpecific>
<ContainsGlobalAssembly>FALSE</ContainsGlobalAssembly>
<ContainsCodeAccessSecurityPolicy>FALSE</ContainsCodeAccessSecurityPolicy>
<SolutionDeploymentJob id="19525bcf-666f-4637-a97e-8b48dd7f15dd">
<Title>“callcenter.wsp”的 Windows SharePoint Services 解决方案部署</Title>
<Type>Deployment</Type>
<State>已失败</State>
</SolutionDeploymentJob>
</Solution>
<Solution Name="changerequest.wsp">
<Id>6ec9e585-6d56-4d2b-911e-2e3b99948e35</Id>
<File>changerequest.wsp</File>
<Deployed>FALSE</Deployed>
<WebApplicationSpecific>FALSE</WebApplicationSpecific>
<ContainsGlobalAssembly>FALSE</ContainsGlobalAssembly>
<ContainsCodeAccessSecurityPolicy>FALSE</ContainsCodeAccessSecurityPolicy>
<SolutionDeploymentJob id="a00f9111-8d3c-413b-833b-e0466ee0105e">
<Title>“changerequest.wsp”的 Windows SharePoint Services 解决方案部署</Title>
<Type>Deployment</Type>
<State>已失败</State>
</SolutionDeploymentJob>
</Solution>
<Solution Name="complianceprocesssupport.wsp">
<Id>8b9300af-e90f-4b49-9309-ebafb126a7bf</Id>
<File>complianceprocesssupport.wsp</File>
<Deployed>FALSE</Deployed>
<WebApplicationSpecific>FALSE</WebApplicationSpecific>
<ContainsGlobalAssembly>FALSE</ContainsGlobalAssembly>
<ContainsCodeAccessSecurityPolicy>FALSE</ContainsCodeAccessSecurityPolicy>
<SolutionDeploymentJob id="62380809-154c-475a-9817-5e90de514379">
<Title>“complianceprocesssupport.wsp”的 Windows SharePoint Services 解决方案部署</Title>
<Type>Deployment</Type>
<State>已失败</State>
</SolutionDeploymentJob>
</Solution>
<Solution Name="contactsmanagement.wsp">
<Id>96555d19-e225-44f9-92e7-5efc880bc8c4</Id>
<File>contactsmanagement.wsp</File>
<Deployed>FALSE</Deployed>
<WebApplicationSpecific>FALSE</WebApplicationSpecific>
<ContainsGlobalAssembly>FALSE</ContainsGlobalAssembly>
<ContainsCodeAccessSecurityPolicy>FALSE</ContainsCodeAccessSecurityPolicy>
<SolutionDeploymentJob id="92a618d1-3424-4767-9d14-2f8fff69a18b">
<Title>“contactsmanagement.wsp”的 Windows SharePoint Services 解决方案部署</Title>
<Type>Deployment</Type>
<State>已失败</State>
</SolutionDeploymentJob>
</Solution>
<Solution Name="documentlibraryreview.wsp">
<Id>5e33b0a9-1aaa-4509-8b2d-0e60abefdbca</Id>
<File>documentlibraryreview.wsp</File>
<Deployed>FALSE</Deployed>
<WebApplicationSpecific>FALSE</WebApplicationSpecific>
<ContainsGlobalAssembly>TRUE</ContainsGlobalAssembly>
<ContainsCodeAccessSecurityPolicy>FALSE</ContainsCodeAccessSecurityPolicy>
<SolutionDeploymentJob id="a8eaad38-956c-4ac5-92aa-37afaf104756">
<Title>“documentlibraryreview.wsp”的 Windows SharePoint Services 解决方案部署</Title>
<Type>Deployment</Type>
<State>已失败</State>
</SolutionDeploymentJob>
</Solution>
<Solution Name="eventplanning.wsp">
<Id>c5932b68-e0b1-4879-aa4a-c3099d183297</Id>
<File>eventplanning.wsp</File>
<Deployed>FALSE</Deployed>
<WebApplicationSpecific>FALSE</WebApplicationSpecific>
<ContainsGlobalAssembly>FALSE</ContainsGlobalAssembly>
<ContainsCodeAccessSecurityPolicy>FALSE</ContainsCodeAccessSecurityPolicy>
<SolutionDeploymentJob id="18281c7f-e7cc-4289-b3e6-18dac77888ee">
<Title>“eventplanning.wsp”的 Windows SharePoint Services 解决方案部署</Title>
<Type>Deployment</Type>
<State>已失败</State>
</SolutionDeploymentJob>
</Solution>
<Solution Name="expensereimbursementapproval.wsp">
<Id>c430946f-ca17-4925-bdc6-868a47f7877f</Id>
<File>expensereimbursementapproval.wsp</File>
<Deployed>FALSE</Deployed>
<WebApplicationSpecific>FALSE</WebApplicationSpecific>
<ContainsGlobalAssembly>FALSE</ContainsGlobalAssembly>
<ContainsCodeAccessSecurityPolicy>FALSE</ContainsCodeAccessSecurityPolicy>
<SolutionDeploymentJob id="1840ba81-b2e1-4c40-b67a-9da6285225bd">
<Title>“expensereimbursementapproval.wsp”的 Windows SharePoint Services 解决方案部署</Title>
<Type>Deployment</Type>
<State>已失败</State>
</SolutionDeploymentJob>
</Solution>
<Solution Name="helpdesk.wsp">
<Id>3d7fb834-5d7d-48e9-b66f-194fde445c0c</Id>
<File>helpdesk.wsp</File>
<Deployed>FALSE</Deployed>
<WebApplicationSpecific>FALSE</WebApplicationSpecific>
<ContainsGlobalAssembly>FALSE</ContainsGlobalAssembly>
<ContainsCodeAccessSecurityPolicy>FALSE</ContainsCodeAccessSecurityPolicy>
<SolutionDeploymentJob id="b89162ad-af7a-43f9-8b30-76731b3da3df">
<Title>“helpdesk.wsp”的 Windows SharePoint Services 解决方案部署</Title>
<Type>Deployment</Type>
<State>已失败</State>
</SolutionDeploymentJob>
</Solution>
<Solution Name="inventorytracking.wsp">
<Id>f9dbe862-60d5-4de5-92f1-1544f51647d3</Id>
<File>inventorytracking.wsp</File>
<Deployed>FALSE</Deployed>
<WebApplicationSpecific>FALSE</WebApplicationSpecific>
<ContainsGlobalAssembly>TRUE</ContainsGlobalAssembly>
<ContainsCodeAccessSecurityPolicy>FALSE</ContainsCodeAccessSecurityPolicy>
<SolutionDeploymentJob id="1cb58ba4-e116-4c21-84cf-1a9a2bf2f800">
<Title>“inventorytracking.wsp”的 Windows SharePoint Services 解决方案部署</Title>
<Type>Deployment</Type>
<State>已失败</State>
</SolutionDeploymentJob>
</Solution>
<Solution Name="itteamworkspace.wsp">
<Id>bed8bd64-d0ac-469a-96fc-cb867001368a</Id>
<File>itteamworkspace.wsp</File>
<Deployed>TRUE</Deployed>
<WebApplicationSpecific>FALSE</WebApplicationSpecific>
<ContainsGlobalAssembly>FALSE</ContainsGlobalAssembly>
<ContainsCodeAccessSecurityPolicy>FALSE</ContainsCodeAccessSecurityPolicy>
<LastOperationResult>DeploymentSucceeded</LastOperationResult>
<LastOperationTime>2009-3-1 23:23</LastOperationTime>
</Solution>
<Solution Name="jobrequisition.wsp">
<Id>0ebcf2cc-6297-4354-bf55-2962f423a386</Id>
<File>jobrequisition.wsp</File>
<Deployed>FALSE</Deployed>
<WebApplicationSpecific>FALSE</WebApplicationSpecific>
<ContainsGlobalAssembly>FALSE</ContainsGlobalAssembly>
<ContainsCodeAccessSecurityPolicy>FALSE</ContainsCodeAccessSecurityPolicy>
<SolutionDeploymentJob id="aaa0791e-3fc2-4461-b7fb-571212329d31">
<Title>“jobrequisition.wsp”的 Windows SharePoint Services 解决方案部署</Title>
<Type>Deployment</Type>
<State>已失败</State>
</SolutionDeploymentJob>
</Solution>
<Solution Name="knowledgebase.wsp">
<Id>975d6932-0820-41e3-82fe-bb4f8889d935</Id>
<File>knowledgebase.wsp</File>
<Deployed>FALSE</Deployed>
<WebApplicationSpecific>FALSE</WebApplicationSpecific>
<ContainsGlobalAssembly>FALSE</ContainsGlobalAssembly>
<ContainsCodeAccessSecurityPolicy>FALSE</ContainsCodeAccessSecurityPolicy>
<SolutionDeploymentJob id="9a52430a-169c-47b9-8951-bef96ebd52ae">
<Title>“knowledgebase.wsp”的 Windows SharePoint Services 解决方案部署</Title>
<Type>Deployment</Type>
<State>已失败</State>
</SolutionDeploymentJob>
</Solution>
<Solution Name="lendinglibrary.wsp">
<Id>1a76aee6-bad7-4934-b8d7-5cc4d933db21</Id>
<File>lendinglibrary.wsp</File>
<Deployed>FALSE</Deployed>
<WebApplicationSpecific>FALSE</WebApplicationSpecific>
<ContainsGlobalAssembly>FALSE</ContainsGlobalAssembly>
<ContainsCodeAccessSecurityPolicy>FALSE</ContainsCodeAccessSecurityPolicy>
<SolutionDeploymentJob id="a818de1f-f9ab-4224-b3d4-75dce180e56b">
<Title>“lendinglibrary.wsp”的 Windows SharePoint Services 解决方案部署</Title>
<Type>Deployment</Type>
<State>已失败</State>
</SolutionDeploymentJob>
</Solution>
<Solution Name="physicalassettracking.wsp">
<Id>8ed0be87-c777-421e-88cf-024a5a76dbc5</Id>
<File>physicalassettracking.wsp</File>
<Deployed>FALSE</Deployed>
<WebApplicationSpecific>FALSE</WebApplicationSpecific>
<ContainsGlobalAssembly>FALSE</ContainsGlobalAssembly>
<ContainsCodeAccessSecurityPolicy>FALSE</ContainsCodeAccessSecurityPolicy>
<SolutionDeploymentJob id="e099ee9a-5b39-488c-9e22-5072508bd375">
<Title>“physicalassettracking.wsp”的 Windows SharePoint Services 解决方案部署</Title>
<Type>Deployment</Type>
<State>已失败</State>
</SolutionDeploymentJob>
</Solution>
<Solution Name="projecttrackingworkspace.wsp">
<Id>538c0384-48ab-483d-90ac-e3a09f755ca5</Id>
<File>projecttrackingworkspace.wsp</File>
<Deployed>FALSE</Deployed>
<WebApplicationSpecific>FALSE</WebApplicationSpecific>
<ContainsGlobalAssembly>FALSE</ContainsGlobalAssembly>
<ContainsCodeAccessSecurityPolicy>FALSE</ContainsCodeAccessSecurityPolicy>
<SolutionDeploymentJob id="bdc95b3a-9dc3-4d25-afdc-d98f98c8c29b">
<Title>“projecttrackingworkspace.wsp”的 Windows SharePoint Services 解决方案部署</Title>
<Type>Deployment</Type>
<State>已失败</State>
</SolutionDeploymentJob>
</Solution>
<Solution Name="roomequipmentreservations.wsp">
<Id>1df107e5-6d9b-4490-bf91-28cb419748c7</Id>
<File>roomequipmentreservations.wsp</File>
<Deployed>FALSE</Deployed>
<WebApplicationSpecific>FALSE</WebApplicationSpecific>
<ContainsGlobalAssembly>TRUE</ContainsGlobalAssembly>
<ContainsCodeAccessSecurityPolicy>FALSE</ContainsCodeAccessSecurityPolicy>
<SolutionDeploymentJob id="18f5dbef-a3cb-4e13-b07b-d7c98b496643">
<Title>“roomequipmentreservations.wsp”的 Windows SharePoint Services 解决方案部署</Title>
<Type>Deployment</Type>
<State>已失败</State>
</SolutionDeploymentJob>
</Solution>
<Solution Name="salesleadpipeline.wsp">
<Id>964e2241-baa9-49d4-8ae8-aef77d4a07d6</Id>
<File>salesleadpipeline.wsp</File>
<Deployed>FALSE</Deployed>
<WebApplicationSpecific>FALSE</WebApplicationSpecific>
<ContainsGlobalAssembly>FALSE</ContainsGlobalAssembly>
<ContainsCodeAccessSecurityPolicy>FALSE</ContainsCodeAccessSecurityPolicy>
<SolutionDeploymentJob id="1f12e1d9-0aea-4d72-80b3-2d5c71ff8be3">
<Title>“salesleadpipeline.wsp”的 Windows SharePoint Services 解决方案部署</Title>
<Type>Deployment</Type>
<State>已失败</State>
</SolutionDeploymentJob>
</Solution>
</Solutions>
<Solutions Count="21">
<Solution Name="absencevacationschedule.wsp">
<Id>d9d569e3-ec65-4e38-a1b0-b3b3ff1aef8e</Id>
<File>absencevacationschedule.wsp</File>
<Deployed>FALSE</Deployed>
<WebApplicationSpecific>FALSE</WebApplicationSpecific>
<ContainsGlobalAssembly>FALSE</ContainsGlobalAssembly>
<ContainsCodeAccessSecurityPolicy>FALSE</ContainsCodeAccessSecurityPolicy>
<SolutionDeploymentJob id="b30f5076-28e5-4e0d-b628-9f7780fea44c">
<Title>“absencevacationschedule.wsp”的 Windows SharePoint Services 解决方案部署</Title>
<Type>Deployment</Type>
<State>已失败</State>
</SolutionDeploymentJob>
</Solution>
<Solution Name="applicationtemplatecore.wsp">
<Id>0273f170-f34b-4f05-9973-494e875dee24</Id>
<File>applicationtemplatecore.wsp</File>
<Deployed>TRUE</Deployed>
<WebApplicationSpecific>FALSE</WebApplicationSpecific>
<ContainsGlobalAssembly>TRUE</ContainsGlobalAssembly>
<ContainsCodeAccessSecurityPolicy>FALSE</ContainsCodeAccessSecurityPolicy>
<LastOperationResult>DeploymentSucceeded</LastOperationResult>
<LastOperationTime>2009-3-1 23:17</LastOperationTime>
</Solution>
<Solution Name="budgetingtrackingmultipleprojects.wsp">
<Id>25d59dca-500c-41c0-bc5d-1894b9bb1e11</Id>
<File>budgetingtrackingmultipleprojects.wsp</File>
<Deployed>FALSE</Deployed>
<WebApplicationSpecific>FALSE</WebApplicationSpecific>
<ContainsGlobalAssembly>FALSE</ContainsGlobalAssembly>
<ContainsCodeAccessSecurityPolicy>FALSE</ContainsCodeAccessSecurityPolicy>
<SolutionDeploymentJob id="703cbf48-df14-4d99-a843-f16a24fd5a1d">
<Title>“budgetingtrackingmultipleprojects.wsp”的 Windows SharePoint Services 解决方案部署</Title>
<Type>Deployment</Type>
<State>已失败</State>
</SolutionDeploymentJob>
</Solution>
<Solution Name="bugdatabase.wsp">
<Id>0e2f7540-e92f-4eb2-b916-cb2364c3941c</Id>
<File>bugdatabase.wsp</File>
<Deployed>FALSE</Deployed>
<WebApplicationSpecific>FALSE</WebApplicationSpecific>
<ContainsGlobalAssembly>FALSE</ContainsGlobalAssembly>
<ContainsCodeAccessSecurityPolicy>FALSE</ContainsCodeAccessSecurityPolicy>
<SolutionDeploymentJob id="b6869607-22a1-4351-8524-427f99619c80">
<Title>“bugdatabase.wsp”的 Windows SharePoint Services 解决方案部署</Title>
<Type>Deployment</Type>
<State>已失败</State>
</SolutionDeploymentJob>
</Solution>
<Solution Name="callcenter.wsp">
<Id>08ec3335-c9b0-458b-a848-6d739b6a74e5</Id>
<File>callcenter.wsp</File>
<Deployed>FALSE</Deployed>
<WebApplicationSpecific>FALSE</WebApplicationSpecific>
<ContainsGlobalAssembly>FALSE</ContainsGlobalAssembly>
<ContainsCodeAccessSecurityPolicy>FALSE</ContainsCodeAccessSecurityPolicy>
<SolutionDeploymentJob id="19525bcf-666f-4637-a97e-8b48dd7f15dd">
<Title>“callcenter.wsp”的 Windows SharePoint Services 解决方案部署</Title>
<Type>Deployment</Type>
<State>已失败</State>
</SolutionDeploymentJob>
</Solution>
<Solution Name="changerequest.wsp">
<Id>6ec9e585-6d56-4d2b-911e-2e3b99948e35</Id>
<File>changerequest.wsp</File>
<Deployed>FALSE</Deployed>
<WebApplicationSpecific>FALSE</WebApplicationSpecific>
<ContainsGlobalAssembly>FALSE</ContainsGlobalAssembly>
<ContainsCodeAccessSecurityPolicy>FALSE</ContainsCodeAccessSecurityPolicy>
<SolutionDeploymentJob id="a00f9111-8d3c-413b-833b-e0466ee0105e">
<Title>“changerequest.wsp”的 Windows SharePoint Services 解决方案部署</Title>
<Type>Deployment</Type>
<State>已失败</State>
</SolutionDeploymentJob>
</Solution>
<Solution Name="complianceprocesssupport.wsp">
<Id>8b9300af-e90f-4b49-9309-ebafb126a7bf</Id>
<File>complianceprocesssupport.wsp</File>
<Deployed>FALSE</Deployed>
<WebApplicationSpecific>FALSE</WebApplicationSpecific>
<ContainsGlobalAssembly>FALSE</ContainsGlobalAssembly>
<ContainsCodeAccessSecurityPolicy>FALSE</ContainsCodeAccessSecurityPolicy>
<SolutionDeploymentJob id="62380809-154c-475a-9817-5e90de514379">
<Title>“complianceprocesssupport.wsp”的 Windows SharePoint Services 解决方案部署</Title>
<Type>Deployment</Type>
<State>已失败</State>
</SolutionDeploymentJob>
</Solution>
<Solution Name="contactsmanagement.wsp">
<Id>96555d19-e225-44f9-92e7-5efc880bc8c4</Id>
<File>contactsmanagement.wsp</File>
<Deployed>FALSE</Deployed>
<WebApplicationSpecific>FALSE</WebApplicationSpecific>
<ContainsGlobalAssembly>FALSE</ContainsGlobalAssembly>
<ContainsCodeAccessSecurityPolicy>FALSE</ContainsCodeAccessSecurityPolicy>
<SolutionDeploymentJob id="92a618d1-3424-4767-9d14-2f8fff69a18b">
<Title>“contactsmanagement.wsp”的 Windows SharePoint Services 解决方案部署</Title>
<Type>Deployment</Type>
<State>已失败</State>
</SolutionDeploymentJob>
</Solution>
<Solution Name="documentlibraryreview.wsp">
<Id>5e33b0a9-1aaa-4509-8b2d-0e60abefdbca</Id>
<File>documentlibraryreview.wsp</File>
<Deployed>FALSE</Deployed>
<WebApplicationSpecific>FALSE</WebApplicationSpecific>
<ContainsGlobalAssembly>TRUE</ContainsGlobalAssembly>
<ContainsCodeAccessSecurityPolicy>FALSE</ContainsCodeAccessSecurityPolicy>
<SolutionDeploymentJob id="a8eaad38-956c-4ac5-92aa-37afaf104756">
<Title>“documentlibraryreview.wsp”的 Windows SharePoint Services 解决方案部署</Title>
<Type>Deployment</Type>
<State>已失败</State>
</SolutionDeploymentJob>
</Solution>
<Solution Name="eventplanning.wsp">
<Id>c5932b68-e0b1-4879-aa4a-c3099d183297</Id>
<File>eventplanning.wsp</File>
<Deployed>FALSE</Deployed>
<WebApplicationSpecific>FALSE</WebApplicationSpecific>
<ContainsGlobalAssembly>FALSE</ContainsGlobalAssembly>
<ContainsCodeAccessSecurityPolicy>FALSE</ContainsCodeAccessSecurityPolicy>
<SolutionDeploymentJob id="18281c7f-e7cc-4289-b3e6-18dac77888ee">
<Title>“eventplanning.wsp”的 Windows SharePoint Services 解决方案部署</Title>
<Type>Deployment</Type>
<State>已失败</State>
</SolutionDeploymentJob>
</Solution>
<Solution Name="expensereimbursementapproval.wsp">
<Id>c430946f-ca17-4925-bdc6-868a47f7877f</Id>
<File>expensereimbursementapproval.wsp</File>
<Deployed>FALSE</Deployed>
<WebApplicationSpecific>FALSE</WebApplicationSpecific>
<ContainsGlobalAssembly>FALSE</ContainsGlobalAssembly>
<ContainsCodeAccessSecurityPolicy>FALSE</ContainsCodeAccessSecurityPolicy>
<SolutionDeploymentJob id="1840ba81-b2e1-4c40-b67a-9da6285225bd">
<Title>“expensereimbursementapproval.wsp”的 Windows SharePoint Services 解决方案部署</Title>
<Type>Deployment</Type>
<State>已失败</State>
</SolutionDeploymentJob>
</Solution>
<Solution Name="helpdesk.wsp">
<Id>3d7fb834-5d7d-48e9-b66f-194fde445c0c</Id>
<File>helpdesk.wsp</File>
<Deployed>FALSE</Deployed>
<WebApplicationSpecific>FALSE</WebApplicationSpecific>
<ContainsGlobalAssembly>FALSE</ContainsGlobalAssembly>
<ContainsCodeAccessSecurityPolicy>FALSE</ContainsCodeAccessSecurityPolicy>
<SolutionDeploymentJob id="b89162ad-af7a-43f9-8b30-76731b3da3df">
<Title>“helpdesk.wsp”的 Windows SharePoint Services 解决方案部署</Title>
<Type>Deployment</Type>
<State>已失败</State>
</SolutionDeploymentJob>
</Solution>
<Solution Name="inventorytracking.wsp">
<Id>f9dbe862-60d5-4de5-92f1-1544f51647d3</Id>
<File>inventorytracking.wsp</File>
<Deployed>FALSE</Deployed>
<WebApplicationSpecific>FALSE</WebApplicationSpecific>
<ContainsGlobalAssembly>TRUE</ContainsGlobalAssembly>
<ContainsCodeAccessSecurityPolicy>FALSE</ContainsCodeAccessSecurityPolicy>
<SolutionDeploymentJob id="1cb58ba4-e116-4c21-84cf-1a9a2bf2f800">
<Title>“inventorytracking.wsp”的 Windows SharePoint Services 解决方案部署</Title>
<Type>Deployment</Type>
<State>已失败</State>
</SolutionDeploymentJob>
</Solution>
<Solution Name="itteamworkspace.wsp">
<Id>bed8bd64-d0ac-469a-96fc-cb867001368a</Id>
<File>itteamworkspace.wsp</File>
<Deployed>TRUE</Deployed>
<WebApplicationSpecific>FALSE</WebApplicationSpecific>
<ContainsGlobalAssembly>FALSE</ContainsGlobalAssembly>
<ContainsCodeAccessSecurityPolicy>FALSE</ContainsCodeAccessSecurityPolicy>
<LastOperationResult>DeploymentSucceeded</LastOperationResult>
<LastOperationTime>2009-3-1 23:23</LastOperationTime>
</Solution>
<Solution Name="jobrequisition.wsp">
<Id>0ebcf2cc-6297-4354-bf55-2962f423a386</Id>
<File>jobrequisition.wsp</File>
<Deployed>FALSE</Deployed>
<WebApplicationSpecific>FALSE</WebApplicationSpecific>
<ContainsGlobalAssembly>FALSE</ContainsGlobalAssembly>
<ContainsCodeAccessSecurityPolicy>FALSE</ContainsCodeAccessSecurityPolicy>
<SolutionDeploymentJob id="aaa0791e-3fc2-4461-b7fb-571212329d31">
<Title>“jobrequisition.wsp”的 Windows SharePoint Services 解决方案部署</Title>
<Type>Deployment</Type>
<State>已失败</State>
</SolutionDeploymentJob>
</Solution>
<Solution Name="knowledgebase.wsp">
<Id>975d6932-0820-41e3-82fe-bb4f8889d935</Id>
<File>knowledgebase.wsp</File>
<Deployed>FALSE</Deployed>
<WebApplicationSpecific>FALSE</WebApplicationSpecific>
<ContainsGlobalAssembly>FALSE</ContainsGlobalAssembly>
<ContainsCodeAccessSecurityPolicy>FALSE</ContainsCodeAccessSecurityPolicy>
<SolutionDeploymentJob id="9a52430a-169c-47b9-8951-bef96ebd52ae">
<Title>“knowledgebase.wsp”的 Windows SharePoint Services 解决方案部署</Title>
<Type>Deployment</Type>
<State>已失败</State>
</SolutionDeploymentJob>
</Solution>
<Solution Name="lendinglibrary.wsp">
<Id>1a76aee6-bad7-4934-b8d7-5cc4d933db21</Id>
<File>lendinglibrary.wsp</File>
<Deployed>FALSE</Deployed>
<WebApplicationSpecific>FALSE</WebApplicationSpecific>
<ContainsGlobalAssembly>FALSE</ContainsGlobalAssembly>
<ContainsCodeAccessSecurityPolicy>FALSE</ContainsCodeAccessSecurityPolicy>
<SolutionDeploymentJob id="a818de1f-f9ab-4224-b3d4-75dce180e56b">
<Title>“lendinglibrary.wsp”的 Windows SharePoint Services 解决方案部署</Title>
<Type>Deployment</Type>
<State>已失败</State>
</SolutionDeploymentJob>
</Solution>
<Solution Name="physicalassettracking.wsp">
<Id>8ed0be87-c777-421e-88cf-024a5a76dbc5</Id>
<File>physicalassettracking.wsp</File>
<Deployed>FALSE</Deployed>
<WebApplicationSpecific>FALSE</WebApplicationSpecific>
<ContainsGlobalAssembly>FALSE</ContainsGlobalAssembly>
<ContainsCodeAccessSecurityPolicy>FALSE</ContainsCodeAccessSecurityPolicy>
<SolutionDeploymentJob id="e099ee9a-5b39-488c-9e22-5072508bd375">
<Title>“physicalassettracking.wsp”的 Windows SharePoint Services 解决方案部署</Title>
<Type>Deployment</Type>
<State>已失败</State>
</SolutionDeploymentJob>
</Solution>
<Solution Name="projecttrackingworkspace.wsp">
<Id>538c0384-48ab-483d-90ac-e3a09f755ca5</Id>
<File>projecttrackingworkspace.wsp</File>
<Deployed>FALSE</Deployed>
<WebApplicationSpecific>FALSE</WebApplicationSpecific>
<ContainsGlobalAssembly>FALSE</ContainsGlobalAssembly>
<ContainsCodeAccessSecurityPolicy>FALSE</ContainsCodeAccessSecurityPolicy>
<SolutionDeploymentJob id="bdc95b3a-9dc3-4d25-afdc-d98f98c8c29b">
<Title>“projecttrackingworkspace.wsp”的 Windows SharePoint Services 解决方案部署</Title>
<Type>Deployment</Type>
<State>已失败</State>
</SolutionDeploymentJob>
</Solution>
<Solution Name="roomequipmentreservations.wsp">
<Id>1df107e5-6d9b-4490-bf91-28cb419748c7</Id>
<File>roomequipmentreservations.wsp</File>
<Deployed>FALSE</Deployed>
<WebApplicationSpecific>FALSE</WebApplicationSpecific>
<ContainsGlobalAssembly>TRUE</ContainsGlobalAssembly>
<ContainsCodeAccessSecurityPolicy>FALSE</ContainsCodeAccessSecurityPolicy>
<SolutionDeploymentJob id="18f5dbef-a3cb-4e13-b07b-d7c98b496643">
<Title>“roomequipmentreservations.wsp”的 Windows SharePoint Services 解决方案部署</Title>
<Type>Deployment</Type>
<State>已失败</State>
</SolutionDeploymentJob>
</Solution>
<Solution Name="salesleadpipeline.wsp">
<Id>964e2241-baa9-49d4-8ae8-aef77d4a07d6</Id>
<File>salesleadpipeline.wsp</File>
<Deployed>FALSE</Deployed>
<WebApplicationSpecific>FALSE</WebApplicationSpecific>
<ContainsGlobalAssembly>FALSE</ContainsGlobalAssembly>
<ContainsCodeAccessSecurityPolicy>FALSE</ContainsCodeAccessSecurityPolicy>
<SolutionDeploymentJob id="1f12e1d9-0aea-4d72-80b3-2d5c71ff8be3">
<Title>“salesleadpipeline.wsp”的 Windows SharePoint Services 解决方案部署</Title>
<Type>Deployment</Type>
<State>已失败</State>
</SolutionDeploymentJob>
</Solution>
</Solutions>
再用canceldeployment命令选项卸载安装的模板,此选项要求以ID为参数,即SolutionDeploymentJob节点,再用deletesolution命令选项删除资源文件,以删除salesleadpipeline.wsp为例:
Code
C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN>stsa
dm -o canceldeployment -id 1f12e1d9-0aea-4d72-80b3-2d5c71ff8be3
操作成功完成。
C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN>stsa
dm -o deletesolution -name salesleadpipeline.wsp
操作成功完成。
C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN>stsa
dm -o canceldeployment -id 1f12e1d9-0aea-4d72-80b3-2d5c71ff8be3
操作成功完成。
C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN>stsa
dm -o deletesolution -name salesleadpipeline.wsp
操作成功完成。
最后重新安装模板:
Code
C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN>stsa
dm -o addsolution -filename D:\ServerAdminTemplates\SalesLeadPipeline.wsp
操作成功完成。
C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN>stsa
dm -o deploysolution -name SalesLeadPipeline.wsp -allowgacdeployment -immediate
已成功创建计时器作业。
C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN>stsa
dm -o addsolution -filename D:\ServerAdminTemplates\SalesLeadPipeline.wsp
操作成功完成。
C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN>stsa
dm -o deploysolution -name SalesLeadPipeline.wsp -allowgacdeployment -immediate
已成功创建计时器作业。
现在从SHAREPOINT管理网站中可以看到新安装的模板了:
写一个BAT文件把刚才没有安装上去的模板再重新安装完成就OK了:
Code
@ECHO OFF
ECHO **********************************
ECHO.开始WSS3.0模版安装(请将模版文件存放在D:\ServerAdminTemplates目录)
ECHO **********************************
pause
cls
set path=%path%;C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN
ECHO AbsenceVacationSchedule.wsp开始卸载
stsadm -o canceldeployment -id b30f5076-28e5-4e0d-b628-9f7780fea44c
stsadm -o deletesolution -name AbsenceVacationSchedule.wsp
ECHO AbsenceVacationSchedule.wsp卸载完成
stsadm -o addsolution -filename D:\ServerAdminTemplates\AbsenceVacationSchedule.wsp
stsadm -o deploysolution -name AbsenceVacationSchedule.wsp -allowgacdeployment -immediate
ECHO AbsenceVacationSchedule.wsp模版安装完成
ECHO BudgetingTrackingMultipleProjects.wsp开始卸载
stsadm -o canceldeployment -id 703cbf48-df14-4d99-a843-f16a24fd5a1d
stsadm -o deletesolution -name budgetingtrackingmultipleprojects.wsp
stsadm -o addsolution -filename D:\ServerAdminTemplates\BudgetingTrackingMultipleProjects.wsp
stsadm -o deploysolution -name BudgetingTrackingMultipleProjects.wsp -allowgacdeployment -immediate
ECHO BudgetingTrackingMultipleProjects.wsp模版安装完成
ECHO BugDatabase.wsp开始卸载
stsadm -o canceldeployment -id b6869607-22a1-4351-8524-427f99619c80
stsadm -o deletesolution -name BugDatabase.wsp
stsadm -o addsolution -filename D:\ServerAdminTemplates\BugDatabase.wsp
stsadm -o deploysolution -name BugDatabase.wsp -allowgacdeployment -immediate
ECHO BugDatabase.wsp模版安装成功
ECHO CallCenter.wsp开始卸载
stsadm -o canceldeployment -id 19525bcf-666f-4637-a97e-8b48dd7f15dd
stsadm -o deletesolution -name CallCenter.wsp
stsadm -o addsolution -filename D:\ServerAdminTemplates\CallCenter.wsp
stsadm -o deploysolution -name CallCenter.wsp -allowgacdeployment -immediate
ECHO CallCenter.wsp模版安装成功
ECHO ChangeRequest.wsp开始卸载
stsadm -o canceldeployment -id a00f9111-8d3c-413b-833b-e0466ee0105e
stsadm -o deletesolution -name ChangeRequest.wsp
stsadm -o addsolution -filename D:\ServerAdminTemplates\ChangeRequest.wsp
stsadm -o deploysolution -name ChangeRequest.wsp -allowgacdeployment -immediate
ECHO ChangeRequest.wsp模版安装成功
ECHO ComplianceProcessSupport.wsp开始卸载
stsadm -o canceldeployment -id 62380809-154c-475a-9817-5e90de514379
stsadm -o deletesolution -name ComplianceProcessSupport.wsp
stsadm -o addsolution -filename D:\ServerAdminTemplates\ComplianceProcessSupport.wsp
stsadm -o deploysolution -name ComplianceProcessSupport.wsp -allowgacdeployment -immediate
ECHO ComplianceProcessSupport.wsp模版安装成功
ECHO ContactsManagement.wsp开始卸载
stsadm -o canceldeployment -id 92a618d1-3424-4767-9d14-2f8fff69a18b
stsadm -o deletesolution -name ContactsManagement.wsp
stsadm -o addsolution -filename D:\ServerAdminTemplates\ContactsManagement.wsp
stsadm -o deploysolution -name ContactsManagement.wsp -allowgacdeployment -immediate
ECHO ContactsManagement.wsp模版安装成功
ECHO DocumentLibraryReview.wsp开始卸载
stsadm -o canceldeployment -id a8eaad38-956c-4ac5-92aa-37afaf104756
stsadm -o deletesolution -name DocumentLibraryReview.wsp
stsadm -o addsolution -filename D:\ServerAdminTemplates\DocumentLibraryReview.wsp
stsadm -o deploysolution -name DocumentLibraryReview.wsp -allowgacdeployment -immediate
ECHO DocumentLibraryReview.wsp模版安装成功
ECHO EventPlanning.wsp开始卸载
stsadm -o canceldeployment -id 18281c7f-e7cc-4289-b3e6-18dac77888ee
stsadm -o deletesolution -name EventPlanning.wsp
stsadm -o addsolution -filename D:\ServerAdminTemplates\EventPlanning.wsp
stsadm -o deploysolution -name EventPlanning.wsp -allowgacdeployment -immediate
ECHO EventPlanning.wsp模版安装成功
ECHO ExpenseReimbursementApproval.wsp开始卸载
stsadm -o canceldeployment -id 1840ba81-b2e1-4c40-b67a-9da6285225bd
stsadm -o deletesolution -name ExpenseReimbursementApproval.wsp
stsadm -o addsolution -filename D:\ServerAdminTemplates\ExpenseReimbursementApproval.wsp
stsadm -o deploysolution -name ExpenseReimbursementApproval.wsp -allowgacdeployment -immediate
ECHO ExpenseReimbursementApproval.wsp模版安装成功
ECHO HelpDesk.wsp开始卸载
stsadm -o canceldeployment -id b89162ad-af7a-43f9-8b30-76731b3da3df
stsadm -o deletesolution -name HelpDesk.wsp
stsadm -o addsolution -filename D:\ServerAdminTemplates\HelpDesk.wsp
stsadm -o deploysolution -name HelpDesk.wsp -allowgacdeployment -immediate
ECHO HelpDesk.wsp模版安装成功
ECHO InventoryTracking.wsp开始卸载
stsadm -o canceldeployment -id 1cb58ba4-e116-4c21-84cf-1a9a2bf2f800
stsadm -o deletesolution -name InventoryTracking.wsp
stsadm -o addsolution -filename D:\ServerAdminTemplates\InventoryTracking.wsp
stsadm -o deploysolution -name InventoryTracking.wsp -allowgacdeployment -immediate
ECHO InventoryTracking.wsp模版安装成功
ECHO JobRequisition.wsp开始卸载
stsadm -o canceldeployment -id aaa0791e-3fc2-4461-b7fb-571212329d31
stsadm -o deletesolution -name JobRequisition.wsp
stsadm -o addsolution -filename D:\ServerAdminTemplates\JobRequisition.wsp
stsadm -o deploysolution -name JobRequisition.wsp -allowgacdeployment -immediate
ECHO JobRequisition.wsp模版安装成功
ECHO KnowledgeBase.wsp开始卸载
stsadm -o canceldeployment -id 9a52430a-169c-47b9-8951-bef96ebd52ae
stsadm -o deletesolution -name KnowledgeBase.wsp
stsadm -o addsolution -filename D:\ServerAdminTemplates\KnowledgeBase.wsp
stsadm -o deploysolution -name KnowledgeBase.wsp -allowgacdeployment -immediate
ECHO KnowledgeBase.wsp模版安装成功
ECHO LendingLibrary.wsp开始卸载
stsadm -o canceldeployment -id a818de1f-f9ab-4224-b3d4-75dce180e56b
stsadm -o deletesolution -name LendingLibrary.wsp
stsadm -o addsolution -filename D:\ServerAdminTemplates\LendingLibrary.wsp
stsadm -o deploysolution -name LendingLibrary.wsp -allowgacdeployment -immediate
ECHO LendingLibrary.wsp模版安装成功
ECHO PhysicalAssetTracking.wsp开始卸载
stsadm -o canceldeployment -id e099ee9a-5b39-488c-9e22-5072508bd375
stsadm -o deletesolution -name PhysicalAssetTracking.wsp
stsadm -o addsolution -filename D:\ServerAdminTemplates\PhysicalAssetTracking.wsp
stsadm -o deploysolution -name PhysicalAssetTracking.wsp -allowgacdeployment -immediate
ECHO PhysicalAssetTracking.wsp模版安装成功
ECHO ProjectTrackingWorkspace.wsp开始卸载
stsadm -o canceldeployment -id bdc95b3a-9dc3-4d25-afdc-d98f98c8c29b
stsadm -o deletesolution -name ProjectTrackingWorkspace.wsp
stsadm -o addsolution -filename D:\ServerAdminTemplates\ProjectTrackingWorkspace.wsp
stsadm -o deploysolution -name ProjectTrackingWorkspace.wsp -allowgacdeployment -immediate
ECHO ProjectTrackingWorkspace.wsp模版安装成功
ECHO RoomEquipmentReservations.wsp开始卸载
stsadm -o canceldeployment -id 18f5dbef-a3cb-4e13-b07b-d7c98b496643
stsadm -o deletesolution -name RoomEquipmentReservations.wsp
stsadm -o addsolution -filename D:\ServerAdminTemplates\RoomEquipmentReservations.wsp
stsadm -o deploysolution -name RoomEquipmentReservations.wsp -allowgacdeployment -immediate
ECHO RoomEquipmentReservations.wsp模版安装成功
ECHO *****************
ECHO 全部模版安装成功
ECHO *****************
pause
@ECHO OFF
ECHO **********************************
ECHO.开始WSS3.0模版安装(请将模版文件存放在D:\ServerAdminTemplates目录)
ECHO **********************************
pause
cls
set path=%path%;C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN
ECHO AbsenceVacationSchedule.wsp开始卸载
stsadm -o canceldeployment -id b30f5076-28e5-4e0d-b628-9f7780fea44c
stsadm -o deletesolution -name AbsenceVacationSchedule.wsp
ECHO AbsenceVacationSchedule.wsp卸载完成
stsadm -o addsolution -filename D:\ServerAdminTemplates\AbsenceVacationSchedule.wsp
stsadm -o deploysolution -name AbsenceVacationSchedule.wsp -allowgacdeployment -immediate
ECHO AbsenceVacationSchedule.wsp模版安装完成
ECHO BudgetingTrackingMultipleProjects.wsp开始卸载
stsadm -o canceldeployment -id 703cbf48-df14-4d99-a843-f16a24fd5a1d
stsadm -o deletesolution -name budgetingtrackingmultipleprojects.wsp
stsadm -o addsolution -filename D:\ServerAdminTemplates\BudgetingTrackingMultipleProjects.wsp
stsadm -o deploysolution -name BudgetingTrackingMultipleProjects.wsp -allowgacdeployment -immediate
ECHO BudgetingTrackingMultipleProjects.wsp模版安装完成
ECHO BugDatabase.wsp开始卸载
stsadm -o canceldeployment -id b6869607-22a1-4351-8524-427f99619c80
stsadm -o deletesolution -name BugDatabase.wsp
stsadm -o addsolution -filename D:\ServerAdminTemplates\BugDatabase.wsp
stsadm -o deploysolution -name BugDatabase.wsp -allowgacdeployment -immediate
ECHO BugDatabase.wsp模版安装成功
ECHO CallCenter.wsp开始卸载
stsadm -o canceldeployment -id 19525bcf-666f-4637-a97e-8b48dd7f15dd
stsadm -o deletesolution -name CallCenter.wsp
stsadm -o addsolution -filename D:\ServerAdminTemplates\CallCenter.wsp
stsadm -o deploysolution -name CallCenter.wsp -allowgacdeployment -immediate
ECHO CallCenter.wsp模版安装成功
ECHO ChangeRequest.wsp开始卸载
stsadm -o canceldeployment -id a00f9111-8d3c-413b-833b-e0466ee0105e
stsadm -o deletesolution -name ChangeRequest.wsp
stsadm -o addsolution -filename D:\ServerAdminTemplates\ChangeRequest.wsp
stsadm -o deploysolution -name ChangeRequest.wsp -allowgacdeployment -immediate
ECHO ChangeRequest.wsp模版安装成功
ECHO ComplianceProcessSupport.wsp开始卸载
stsadm -o canceldeployment -id 62380809-154c-475a-9817-5e90de514379
stsadm -o deletesolution -name ComplianceProcessSupport.wsp
stsadm -o addsolution -filename D:\ServerAdminTemplates\ComplianceProcessSupport.wsp
stsadm -o deploysolution -name ComplianceProcessSupport.wsp -allowgacdeployment -immediate
ECHO ComplianceProcessSupport.wsp模版安装成功
ECHO ContactsManagement.wsp开始卸载
stsadm -o canceldeployment -id 92a618d1-3424-4767-9d14-2f8fff69a18b
stsadm -o deletesolution -name ContactsManagement.wsp
stsadm -o addsolution -filename D:\ServerAdminTemplates\ContactsManagement.wsp
stsadm -o deploysolution -name ContactsManagement.wsp -allowgacdeployment -immediate
ECHO ContactsManagement.wsp模版安装成功
ECHO DocumentLibraryReview.wsp开始卸载
stsadm -o canceldeployment -id a8eaad38-956c-4ac5-92aa-37afaf104756
stsadm -o deletesolution -name DocumentLibraryReview.wsp
stsadm -o addsolution -filename D:\ServerAdminTemplates\DocumentLibraryReview.wsp
stsadm -o deploysolution -name DocumentLibraryReview.wsp -allowgacdeployment -immediate
ECHO DocumentLibraryReview.wsp模版安装成功
ECHO EventPlanning.wsp开始卸载
stsadm -o canceldeployment -id 18281c7f-e7cc-4289-b3e6-18dac77888ee
stsadm -o deletesolution -name EventPlanning.wsp
stsadm -o addsolution -filename D:\ServerAdminTemplates\EventPlanning.wsp
stsadm -o deploysolution -name EventPlanning.wsp -allowgacdeployment -immediate
ECHO EventPlanning.wsp模版安装成功
ECHO ExpenseReimbursementApproval.wsp开始卸载
stsadm -o canceldeployment -id 1840ba81-b2e1-4c40-b67a-9da6285225bd
stsadm -o deletesolution -name ExpenseReimbursementApproval.wsp
stsadm -o addsolution -filename D:\ServerAdminTemplates\ExpenseReimbursementApproval.wsp
stsadm -o deploysolution -name ExpenseReimbursementApproval.wsp -allowgacdeployment -immediate
ECHO ExpenseReimbursementApproval.wsp模版安装成功
ECHO HelpDesk.wsp开始卸载
stsadm -o canceldeployment -id b89162ad-af7a-43f9-8b30-76731b3da3df
stsadm -o deletesolution -name HelpDesk.wsp
stsadm -o addsolution -filename D:\ServerAdminTemplates\HelpDesk.wsp
stsadm -o deploysolution -name HelpDesk.wsp -allowgacdeployment -immediate
ECHO HelpDesk.wsp模版安装成功
ECHO InventoryTracking.wsp开始卸载
stsadm -o canceldeployment -id 1cb58ba4-e116-4c21-84cf-1a9a2bf2f800
stsadm -o deletesolution -name InventoryTracking.wsp
stsadm -o addsolution -filename D:\ServerAdminTemplates\InventoryTracking.wsp
stsadm -o deploysolution -name InventoryTracking.wsp -allowgacdeployment -immediate
ECHO InventoryTracking.wsp模版安装成功
ECHO JobRequisition.wsp开始卸载
stsadm -o canceldeployment -id aaa0791e-3fc2-4461-b7fb-571212329d31
stsadm -o deletesolution -name JobRequisition.wsp
stsadm -o addsolution -filename D:\ServerAdminTemplates\JobRequisition.wsp
stsadm -o deploysolution -name JobRequisition.wsp -allowgacdeployment -immediate
ECHO JobRequisition.wsp模版安装成功
ECHO KnowledgeBase.wsp开始卸载
stsadm -o canceldeployment -id 9a52430a-169c-47b9-8951-bef96ebd52ae
stsadm -o deletesolution -name KnowledgeBase.wsp
stsadm -o addsolution -filename D:\ServerAdminTemplates\KnowledgeBase.wsp
stsadm -o deploysolution -name KnowledgeBase.wsp -allowgacdeployment -immediate
ECHO KnowledgeBase.wsp模版安装成功
ECHO LendingLibrary.wsp开始卸载
stsadm -o canceldeployment -id a818de1f-f9ab-4224-b3d4-75dce180e56b
stsadm -o deletesolution -name LendingLibrary.wsp
stsadm -o addsolution -filename D:\ServerAdminTemplates\LendingLibrary.wsp
stsadm -o deploysolution -name LendingLibrary.wsp -allowgacdeployment -immediate
ECHO LendingLibrary.wsp模版安装成功
ECHO PhysicalAssetTracking.wsp开始卸载
stsadm -o canceldeployment -id e099ee9a-5b39-488c-9e22-5072508bd375
stsadm -o deletesolution -name PhysicalAssetTracking.wsp
stsadm -o addsolution -filename D:\ServerAdminTemplates\PhysicalAssetTracking.wsp
stsadm -o deploysolution -name PhysicalAssetTracking.wsp -allowgacdeployment -immediate
ECHO PhysicalAssetTracking.wsp模版安装成功
ECHO ProjectTrackingWorkspace.wsp开始卸载
stsadm -o canceldeployment -id bdc95b3a-9dc3-4d25-afdc-d98f98c8c29b
stsadm -o deletesolution -name ProjectTrackingWorkspace.wsp
stsadm -o addsolution -filename D:\ServerAdminTemplates\ProjectTrackingWorkspace.wsp
stsadm -o deploysolution -name ProjectTrackingWorkspace.wsp -allowgacdeployment -immediate
ECHO ProjectTrackingWorkspace.wsp模版安装成功
ECHO RoomEquipmentReservations.wsp开始卸载
stsadm -o canceldeployment -id 18f5dbef-a3cb-4e13-b07b-d7c98b496643
stsadm -o deletesolution -name RoomEquipmentReservations.wsp
stsadm -o addsolution -filename D:\ServerAdminTemplates\RoomEquipmentReservations.wsp
stsadm -o deploysolution -name RoomEquipmentReservations.wsp -allowgacdeployment -immediate
ECHO RoomEquipmentReservations.wsp模版安装成功
ECHO *****************
ECHO 全部模版安装成功
ECHO *****************
pause
最后再用如下命令确认一下安装结果,重启IIS:
Code
stsadm -o enumsolutions >D:\tool\Sharepoint\Template\content.xml
stsadm -o enumsolutions >D:\tool\Sharepoint\Template\content.xml