Go to your SharePoint Central Administration.
Click Start, then All Programs and select Microsoft SharePoint 2013 Products. After that open SharePoint 2013 Central Administration.
Go to Solution Management and click System Settings, then Manage Farm Solution.
Copy your WSP file name from Solution Management. Here I have to download documenteventreceiver.wsp file.
Open notepad and paste the following code.
- $farm = Get-SpFarm
- $file = $farm.Solutions.Item(“documenteventreceiver.wsp ”).SolutionFile
- $file.SaveAs(“E:\WSPFiles\documenteventreceiver.wsp ”)
Here change your WSP file name and your path what you actually want it to be.
Save the notepad document with .ps1 extension.
Open
SharePoint 2013 Management Shell.
Go to
Start, then
All Programs and select
Microsoft SharePoint 2013 Products. After that click
SharePoint 2013 Management Shell.
Go to your ps1 file location as in the following screenshot. Here I have saved it to WSPFiles inside E: drive.
Just type the starting letter of your ps1 file name and press Tab key. After that click enter button.
Go to WSP location (already mentioned E:\WSPFiles) and your WSP file will be downloaded.
Summary
In this article we saw how to download WSP files from SharePoint Central Administration using PowerShell script.