SharePoint 2016 Managing Site Collection Web Part Pack (Real World Example)


This article is a sequence of real world examples of using PowerShell in SharePoint 2016. In this article, we will discuss how we will use the PowerShell cmdlets to manage the Site Collection webPartPack in SharePoint. We will try to cover all the available cmdlets i.e. get, Install and Uninstall.


KrossFarm SharePoint farm faces some issues with the RSwebpart. After a lot of  troubleshooting they finally reached the point where have to uninstall and reinstall the RSwebPart. They already have the file with them, which makes life easy.


  • Get the list of webparts to Install the farm
  • Uninstall the RSwebpart from the farm
  • Install the RSWebpart globally.


Let’s get the list of all Webpart packs installed. Run the Below PowerShell


The output will be like this, but you will notice, this will only be the Name of the solution, ID, and Status of Deployment.


But If you run the below mentioned command, You will get complete details of each webpartpack.

Get-SPWebPartPack | select *

The output will be like this.



Now we will uninstall the RSwebpart from the farm.Please run the command below.

Uninstall-SPWebPartPack -Identity

The output will be like this.



Finally, we will install the RSweb Part.Please run the below mentioned command.

Install-SPWebPartPack -LiteralPath "C:\Tempfiles\" -GlobalInstall

This will deploy the RSwebpart globally (gacassembly) and all web applications in the farm.


But if you just want to install it to only specific web applications, then run the below command.

Install-SPWebPartPack -LiteralPath "C:\Tempfiles\" -WebApplicationhttp://kfsp :9101


I just use this as an example, the situation varies in your environment. This example is just for learning purposes and gives you an idea how to use commands.