SharePoint 2016, Sharepoint 2013, Sharepoint 2010, Windows Server 2012, Sql Server 2012,2014,IIS, Active Directory,User Profile Service, Managed MetaData Service, Search Service, Topology, Web Application, IIS, Site collection, List, Library, PowerShell, office web app, Windows Authentication, NTLM, Kerberos, Saml, ADFS, Active Directory Import, MIM, SharePoint 2016 Managing Site collection WebPartPack (Real World example) – SharePoint

SharePoint 2016 Managing Site collection WebPartPack (Real World example)

Introduction

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

Scenario

KrossFarm SharePoint farm facing some issues with the RSwebpart  After long troubleshooting they finally reach to this point to we have to uninstall and reinstall the RSwebPart. They already have the RSwebpart.cab file with them, which make their life easy.

Tasks

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

Get

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

Get-SPWebPartPack

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

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

Get-SPWebPartPack | select *

The output will be Like this.

Uninstall

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

Uninstall-SPWebPartPack -Identity rswebparts.cab

The output will be like this.

Install

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

Install-SPWebPartPack -LiteralPath "C:\Tempfiles\RSWebParts.cab" -GlobalInstall

This will deploy the RSwebpart globally (gacassembly) and to 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\RSWebParts.cab" -WebApplicationhttp://kfsp :9101

 

Note

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

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *