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_feature1 -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
关于PowerShell: STSADM命令对于SharePoint 2010仍然有用,但是官方不赞成了。PowerShell取而代之。PowerShell可以做到STSADM能做到的所有事情,而且更多,也更快。 PowerShell命令大小写不敏感。
和STSADM一样,PowerShell必须运行在SharePoint Server上。PowerShell必须使用管理员身份运行。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-22
  • 2022-01-30
  • 2022-12-23
  • 2021-07-03
  • 2021-07-18
猜你喜欢
  • 2021-09-26
  • 2021-09-05
  • 2021-06-11
  • 2021-09-20
  • 2021-10-05
  • 2022-02-08
  • 2021-11-05
相关资源
相似解决方案