Tuesday, 3 April 2012

Extract WSP from SharePoint Central Admin


Extract or Download WSP from SharePoint Central Admin
I was building a new infrastructure for the production environment and as a part of the process had to install solution packages from old to the new environment.
This power shall command was quite handy to download the WSP’s from SharePoint Central Admin to a local drive.

$sharepointfarm = Get-SPFarm
$sharepointfile = $sharepointfarm.Solutions.Item("extendeddiagnosticproviders.wsp").SolutionFile

$sharepointfile.SaveAs("c:\solutions\extendeddiagnosticproviders.wsp")

No comments:

Post a Comment