当前位置:网站首页>Deployment, recall and deletion solutions - stsadm and PowerShell "suggestions collection"

Deployment, recall and deletion solutions - stsadm and PowerShell "suggestions collection"

2022-07-07 21:04:00 Full stack programmer webmaster

Hello everyone , I meet you again , I'm the king of the whole stack .

Deploy 、 Recall and delete solutions —-STSADM and PowerShell

Because in the near future, it is always necessary to deploy wsp Solution , So we often use the command line or PowerShell. So it is necessary to concentrate the commands here . High speed reference can be made during deployment .

STSADM

stsadm -o addsolution –filename c:\bin\CustomerSiteSearch.wsp
stsadm -o deploysolution –name CustomerSiteSearch.wsp -url http://[ServerName] -allowgacdeployment -force –immediate
stsadm -o activatefeature –name customersitesearch -url http://[ServerName] -force
stsadm -o retractsolution -name solutionName.wsp -immediate
stsadm -o deletesolution -name solutionName.wsp

PowerShell

Add-SPSolution c:\bin\CustomerSiteSearch.wsp
Install-SPSolution -Identity CustomerSiteSearch.wsp -AllWebApplications -GACDeployment
Enable-SPFeature CustomerSiteSearch_feature1 -url http://[ServerName]/ –force
Uninstall-SPSolution -identity solutionName.wsp
Remove-SPSolution -identity solutionName.wsp

About PowerShell:

  • STSADM The order is for SharePoint 2010 Still practical , But the official disapproved .PowerShell Instead, .
  • PowerShell Able to STSADM Everything you can do , And many others , And faster .
  • PowerShell Command uppercase and lowercase insensitive .
  • and STSADM equally .PowerShell Must be implemented in SharePoint Server On .
  • PowerShell Must be executed as administrator .

Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/116445.html Link to the original text :https://javaforall.cn

原网站

版权声明
本文为[Full stack programmer webmaster]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207071843026096.html