Monday, February 1, 2016

Adding and Install .wsp to a Site Collection using Powershell Commands

Stsadm

To Add : stsadm –o addsolution –name SharePointProject2.wsp

To Install : stsadm –o deploysolution –name SharePointProject2.wsp –url http://moss-server –allowCasPolicies –immediate

To Upgrade : stsadm –o upgradesolution –name SharePointProject2.wsp –filename SharePointProject2.wsp –immediate –allowCasPolicies


PowerShell

To Add : Add-SPSolution c:\code\SharePointProject2\bin\debug\SharePointProject2.wsp

To Install : Install-SPSolution –Identity SharePointProject2.wsp –WebApplication http://sp2010 -GACDeployment

To Update : Update-SPSolution –Identity SharePointProject2.wsp –LiteralPath c:\code\SharePointProject2\bin\debug\SharePointProject2.wsp –GACDeployment

To Uninstall : Uninstall-SPSolution –Identity SharePointProject2.wsp –WebApplication http://sp2010

To Remove : Remove-SPSolution –Identity SharePointProject2.wsp

No comments:

Post a Comment