Changing the GroupName of a ContentType using PowerShell

%3CLINGO-SUB%20id%3D%22lingo-sub-180055%22%20slang%3D%22en-US%22%3EChanging%20the%20GroupName%20of%20a%20ContentType%20using%20PowerShell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-180055%22%20slang%3D%22en-US%22%3E%3CP%3EHi%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThere%20is%20a%20PnP%20PowerShell%20command%20called%20Set-PnPField%20which%20allows%20me%20to%20change%20the%20Group%20a%20Site%20Column%20is%20in.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBut%20there%20does%20not%20seem%20to%20be%20a%20corresponding%20Set-PnPContentType%20to%20change%20the%20group%20a%20Content%20Type%20Belongs%20to.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIdeally%20I%20would%20just%20like%20to%20rename%20the%20group%20a%20Site%20Column%20belongs%20to%20and%20the%20group%20a%20Content%20Type%20belongs%20to.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20cannot%20seem%20to%20find%20a%20PowerShell%20Script%20to%20do%20this%20%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ERegards%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENigel%3C%2FP%3E%3C%2FLINGO-BODY%3E
Regular Contributor

Hi

 

There is a PnP PowerShell command called Set-PnPField which allows me to change the Group a Site Column is in.

 

But there does not seem to be a corresponding Set-PnPContentType to change the group a Content Type Belongs to.

 

Ideally I would just like to rename the group a Site Column belongs to and the group a Content Type belongs to.

 

I cannot seem to find a PowerShell Script to do this ?

 

Regards

 

Nigel

0 Replies