Posts

Showing posts from October, 2016

SharePoint Solution (WSP) management using PowerShell

Image
My recommended approach to manage SharePoint WSP solutions is; Powershell instead of GUI approach using SharePoint administration. Despite that, you can use the Central Administration to do that. Open SharePoint Powershell or windows Powershell using ‘Run as administrator’. If you open windows default Powershell , you need to load the SharePoint snap in explicitly, it auto loads in case of SharePoint Powershell . PS C:\Windows\system32> add-pssnapin Microsoft.Sharepoint.Powershell We will see some important Powershell cmdlet which are useful for solution management. (This article will be mainly focused on main parameters available with cmdlets, for all parameter details, please refer to Ms technet https://technet.microsoft.com/EN-US/library/ee906565.aspx . Add-SPSolution Add-SpSolution -LiteralPath [path of the wsp file with name and extension] Add a SharePoint WSP solution to the Farm. Build your solution in visual studio, ->Publish to a fo