I have a large subsite within a Sharepoint 2016 site hierarchy that I would like to export to a different site collection. The problem is that each document set library in the subsite uses a single content type that's been created at the subsite's parent level. E.g. if my site is at http://example/type/site, the content type and columns are set up at the site http://example/type.
I tried using import/export-spweb to copy the site and its content to the new location, but it only moved the child content types as part of the libraries. How can I move the parent site content type and columns and reassociate them with the child content types? And can I preserve any additional columns or column-hiding present in the child content types?
I'm comfortable enough with Powershell to script importing the content type/columns or updating them on the child items, given some idea of how go about it without losing customisations or more.