3

Is there a way to rename Term store "root" node? (yellow in the picture below)

enter image description here

I've tried

$taxonomySession = Get-SPTaxonomySession -Site $gurl
$termStore = $taxonomySession.TermStores["Managed Metadata Service Application"]
$termStore.Name = "Managed Metadata Service"

without luck :(

1 Answer 1

4

You cannot edit the Name directly, because the Name of the TermStore is simply the name of the MetadataWebServiceApplicationProxy.

So what you have to do is to rename that one instead. In your example, you have to get the SPMetadataServiceApplication first, find the right proxy and rename it. This should look like this, assumed that your SPMetadataServiceApplication is named "Managed Metadata Service Application"

$metadataApplication = Get-SPMetadataServiceApplication -Identity "Managed Metadata Service Application"
foreach($proxy in $metadataApplication.ServiceApplicationProxyGroup.Proxies)
{
    if($proxy.Name -like "*Managed Metadata Service Application*")
    {
        $proxy.Name = "Managed Metadata Service"
        $proxy.Update()
    }
}

or short version

$metadataApplication = Get-SPMetadataServiceApplication -Identity "Managed Metadata Service Application"
$proxy = $metadataApplication.ServiceApplicationProxyGroup.Proxies | Where-Object { $_.Name -like "*Managed Metadata Service Application*" } 
$proxy.Name = "Managed Metadata Service"; 
$proxy.Update();

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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