How To Add WSP In SharePoint Server Using PowerShell Script

This blog is about defining solution packages in Microsoft SharePoint Server 2010 “How to add Solution file (WSP) in SharePoint Server using PowerShell Script”.

Once we get the WSP file, copy the file and copy the solution file on the SharePoint Server.

Enter the below command.

Add-SPSolution -LiteralPath “D: \AddNewPart.wsp”

Once the above command is executed, we can see the added file under SharePoint server. Go to Central Administrator and click on System Settings.

Now, click on "Manage Farm Solution," under Farm Management search for added.

Click on above the highlighted Manage Farm Solutions option and search for the added file, you can see our WSP file will be added and you can see there will be a Deployment option, we will select Not Deployed and the web Application option is set to none.

If you want to deploy the same solution from here, click on select solution and click on deploy solution.

The above option will be available by clicking on select wsp, here select Deploy solution to Deploy the same or you can remove also by selecting Remove solution.

Ebook Download
View all
Learn
View all