Add and Deploy Solution in SharePoint Central Administration Using PowerShell Commands

This article explains how to add and deploy solutions in SharePoint 2013 using PowerShell Commands.

Step 1

SharePoint solution is deployed to a SharePoint server using a solution package (.wsp) file. Get a WSP file from the solution with the following.

  1. Right-click your solution and go to Open Folder in File Explorer.

    Open Folder in FileExplorer

  2. Open the bin folder.

    click bin folder

  3. Open the Debug folder.

    bin folder

  4. Copy the WSP (EmployeeDetails.wsp).

Step 2

Open SharePoint 2013 Management Shell with Run as administrator. Copy the following command and paste it.

Add-SPSolution “Your WSP Location”\”Your WSP Name”.wsp.

SPSolution

Click Enter.

Step 3

Go to Solution Management in SharePoint Central Administration. Your solution is added to Solution Management.

backup and restore

Step 4

Open the SharePoint 2013 Management Shell with Run as administrator. Copy the following command and paste it in.

Install-SPSolution –Identity "WSP Name".wsp –WebApplication "Site Url" –GACDeployment

cmd


Click Enter.

administrator

Go to SharePoint Central Administration and open Solution Management. Your solution will be deployed in SharePoint site.

solution management

Summary

In this article we have explored how to add and deploy a solution in SharePoint 2013 using PowerShell Commands.

Up Next
    Ebook Download
    View all
    Learn
    View all