Modify the Site url of content type hub in Managed Metadata service application

Today I am providing the Power Shell Script that can be used to modify the Site url for content type hub in managed meta data service application.

We can not modify the url of content type hub using UI once we have defined that in Managed Metadata Service Application. Use below script for doing this.

.Inputs
Managed Metadata Service Application - Name of the Managed Metadata Service Application that is using the content type hub.
Site url - URL of the site that will host the content types.

.Outputs
This Script will Change the URL of Content type hub in Managed Metadata Service Application.

Example-
.\scriptname.ps1
.\scriptname.ps1 | out-file “FilePath\Filename.txt”
Dependencies –
For executing this script user must be added in site collection administrators in the sites.
User should have Shell Admin rights to run the scripts.
Run Management Shell as an Administrator.
How to execute -
Copy this script and paste in Note pad.
Save this file as .ps1.
Run this script in SharePoint Management Shell. You can run this script in PowerShell as well.
Follow on screen instructions.

FOR ANY HELP ON THIS SCRIPT USE "GET-HELP .\SCRIPTNAME.PS1 --FULL" AFTER SAVING THIS FILE.


Go to above link to get the script.

No comments:

Post a Comment