Move Content Type Hub

I wouldn’t by default recommend moving a content type hub, but realizing there may be a need to do so at some point, here is a process for moving the hub. There may be some repercussions of doing a move that have not yet been realized, which may be why Microsoft doesn’t allow you to change the Hub Uri in a Managed Metadata Service properties window once it’s been set.

Backup-SPSite http://OldHubUrl
Remove-SPSite http://OldHubUrl
Restore-SPSite http://NewHubUrl
Set-SPMetadataService “<Managed Metadata Service Name> –huburi http://NewHubUrl

Once that’s done, the content types in the subscriber site collections will still look like they’re subscribed. They’ll be read only, and if you look on the Content Type Publishing page (Site Settings –> Content type publishing) you will see them listed with the new hub URL. However, the next time the subscriber job runs on the server, the content types will become editable. To fix this, you will need to republish your content types to get them reconnected to the new hub. Don’t forget this last step.

Use at your own risk.

3 thoughts on “Move Content Type Hub”

  1. Lester Sconyers says:

    Hey dude…Let’s get some new content over here :). I have a script that’s intended to replicate the term store and content hub from one farm to another. It restores (imports) the term store data, restores the content hub, sets the new content hub uri, and republishes content types.

    A couple times I restored the content hub and all the freakin content types were missing! Have you seen this before?

    1. Hey Lester, thanks for stopping by! No, I haven’t run into that before, but that script sounds like something worth keeping in your toolbox. Things like this don’t come up often, but when they do it’s nice to have something to pull out and hit the ground running.

  2. Rob Orton says:

    Hi I have just tried this and it worked ok. I did find that I needed to deactivate and reactivate the “Content Type Syndication Hub” feature /_layouts/ManageFeatures.aspx?Scope=Site of the Content Type Hub. I then needed to go to each content type in /_layouts/mngctype.aspx and activate the publish option. When the two timer jobs “Content Type Hub” and “Content Type Subscriber” ran the update was complete.

Leave a Reply

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