Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

in Application Management -> Manage Service Applications -> Managed Metadata Service. Select manage metadata service and click properties. In properties window, I have added Site collection URL for content type hub and have tested the content types across multiple sites. But now I want to change Site collection URL for content type hub. How I change this?

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

You can change it via PowerShell. See this article: http://www.sharepointanalysthq.com/2010/11/how-to-change-the-content-type-hub-url/

They basically show how to use this cmdlet:

Set-SPMetadataServiceApplication -Identity "<ServiceApplication>" -HubURI "<HubURI>"
share|improve this answer
add comment

I have this little powershell function you can try it out...

function SetManagedMetadaService
{
    Param(
            [parameter(Mandatory=$true)][string]$ServiceName,
            [parameter(Mandatory=$true)][string]$HubSiteUrl
        )

        Write-Host "Setting contenttype hub Url"

        #Get-SPServiceApplication | ForEach-Object {
        #   if ($_.TypeName -eq $ServiceName) { $MetadataInstance = $_ }
        #}

        $MetadataInstance = Get-SPServiceApplication -Name "Managed Metadata Service"

        Set-SPMetadataServiceApplication -Identity $MetadataInstance -HubURI $hubSiteUrl

        Write-Host -f yellow "Setting Proxy Metadata Service Options"

        # Get Metadata service application proxy  
        $metadataserviceapplicationproxy = get-spmetadataserviceapplicationproxy $ServiceName 

        # This service application is the default storage location for Keywords. 
        $metadataserviceapplicationproxy.Properties["IsDefaultKeywordTaxonomy"] = $true 

        # This service application is the default storage location for column specific term sets. 
        $metadataserviceapplicationproxy.Properties["IsDefaultSiteCollectionTaxonomy"] = $true 

        # Consumes content types from the Content Type Gallery 
        $metadataserviceapplicationproxy.Properties["IsNPContentTypeSyndicationEnabled"] = $true 

        # Push-down Content Type Publishing updates from the Content Type Gallery 
        # to sub-sites and lists using the content type. 
        $metadataserviceapplicationproxy.Properties["IsContentTypePushdownEnabled"] = $true 
        $metadataserviceapplicationproxy.update()       

}

And, remember to load the sharepoint snap in...

$snapin = Get-PSSnapin | Where-Object {$_.Name -eq 'Microsoft.SharePoint.Powershell'}
 if ($snapin -eq $null)
 {
     Write-Host "Loading SharePoint Powershell Snapin"
     Add-PSSnapin "Microsoft.SharePoint.Powershell"
 }
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.