Problem: In a Migration project, after backup-restoring MMS Service application, found that the Managed Metadata Service application still referring to the old SharePoint 2010's content type hub URL. Unfortunately, There is no way to update content type hub URL in SharePoint 2013 Managed metadata services!
The Same issue arises when you want to change your existing content type hub site! If you have not assigned any content type hub in managed metadata service application already, then setting it up is fairly straight forward.
How to Set Content Type Hub URL in Managed Metadata Service Application:
- Go to Central Administration >> click the Application Management >> under Service Applications, Select Managed Metadata Service >> Click on Properties from the ribbon.
- In Managed metadata service application properties, Enter your Content Type Hub site collection URL in Content Type, such as: http://intranet.crescent.com/ctypehub.
- Also, Select the Managed Metadata Service Connection >> Click on Properties from the ribbon, and set "Consume content type from the content type gallery". That's all.
But if the content type hub is already assigned, then this property stays read only!
Content type hub in SharePoint allows centralized management of content types through Managed metadata service. There is no UI to change content type hub URL in SharePoint 2010 or in SharePoint 2013. However, We can utilize PowerShell to change content type hub URL of managed metadata service. Here is my script:
PowerShell Script to change Content Type hub URL in SharePoint:
Add-PSSnapin Microsoft.SharePoint.Powershell -ErrorAction SilentlyContinue #Managed Metadata Service Application Name $MMSAppName="Managed Metadata Service" #New location of Content Type Hub $ContentTypeHub ="http://intranet.crescent.com/sites/CtypeHub" #set content type hub powershell Set-SPMetadataServiceApplication -Identity $MMSAppName -HubURI $ContentTypeHub Write-host "Content Type location updated!"You'll be prompted to confirm. Once confirmed, This PowerShell script changes content type hub URL in SharePoint 2013!
You might also like:
SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Document SharePoint Farm
Automatically generate SharePoint documentation.