A Practical Guide to SharePoint 2013

A Practical Guide to SharePoint 2013
A Practical Guide to SharePoint 2013 - Book by Saifullah Shafiq

Thursday, January 6, 2011

Deploy WSP using Powershell

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

2 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. Retract and Remove:

    Uninstall-SPSolution –Identity solution.wsp –WebApplication http://server

    Remove-SPSolution –Identity solution.wsp

    ReplyDelete