If you are looking to deploy a WSP using Powershell, use following stsadm alternative commands (PS).
Open SharePoint 2010 Management Shell and type following comman to add solution:
Add-spsolution “C:\installation\mylist.wsp”
To deploy the above WSP, use following command:
Install-spsolution –identity mylist.wsp –gacdeployment
If you want to specify a URL, use following command:
Install-spsolution –identity mylist.wsp –webapplication http://spsite –gacdeployment
This comment has been removed by the author.
ReplyDeleteRetract and Remove:
ReplyDeleteUninstall-SPSolution –Identity solution.wsp –WebApplication http://server
Remove-SPSolution –Identity solution.wsp