You have a SharePoint server farm.
You have document libraries that contain multiple content types.
You need to replicate the content types to SharePoint Online.
Which PowerShell cmdlet should you run?
The Copy-SPContentTypes cmdlet is used in hybrid scenarios with SharePoint Online to copy Content Types from an on-premises farm to SharePoint Online.
Copy-SPContentTypes -LocalSiteUrl https://localsite/ -LocalTermStoreName 'managed metadata service
application proxy' -RemoteSiteUrl https://contoso.sharepoint.com/ -ContentTypeNames @('ContentTypeA',
'ContentTypeB') -Credential (Get-Credential)
This example migrates the specified content types named: ContentTypeA, ContentTypeB on the local site https://localsite/ whose term store named 'managed metadata service application proxy' to the hub site of remote site https://contoso.sharepoint.com/. If the remote site is a hub site, the migration target will be itself.
Currently there are no comments in this discussion, be the first to comment!