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 :(

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, privacy policy and cookie policy

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