Showing posts with label SharePoint Interview Questions. Show all posts
Showing posts with label SharePoint Interview Questions. Show all posts

Thursday, July 18, 2013

Download/Extract a WSP from SharePoint 2010 using PowerShell

In our recent project we were facing an issue with page layouts, so we need to check our WSP solution on server. In the Central Administration screen, a link is not available for you to download the WSP solution.

We can extract the WSP from farm with custom code but I have used below 3 lines of PowerShell code to achieve my goal

$spfarm = Get-SPFarm
$wspfile = $spfarm.Solutions.Item("wspfilename.wsp").SolutionFile
$wspfile.SaveAs("d:\extract\wspfilename.wsp")


Make sure, you would be a member of Farm Administrators group and have permission to the configuration database.

SharePoint AI Innovations Reach General Availability

Microsoft continues to strengthen the foundation for AI-powered workplaces with the announcement that several SharePoint AI innovations are ...