Forum Discussion
Haniel Croitoru
Aug 14, 2016Learn Expert
How to add new Content Types to SharePoint Online Document Libraries using PowerShell
I recently had to add a new content type to a number of SharePoint Online Document libraries and wanted to use PowerShell to simplify the process. Having used OfficeDev PnP quite extensively in the ...
Aug 15, 2016
I would the Get-SPOProvisioningTemplate command and the Apply-SPOProvisioingTemplate. That lists all fields and content types in an xml. Simply update and reapply the xml to the root site of your site collection and the content type is created.
Then for the in the subsites libraries do the same export/import. All you would need is a content type reference included in the list instances. This ensures that you will use the site collection content types created in the above step.