1 min read
PowerShellSharePoint

SharePoint 2010: PowerShell script to retreive Managed Meta Data Service and Terms Store IDs

This script has already been produced in a previous post, but for convenience I thought I would replicate it here.

#Get the Site Collection
$SiteCollection = Get-SPSite http://%5BSharePoint Site] #Change to you site URL

#Get the Term Store ID
$TaxSession = Get-SPTaxonomySession -Site $SiteCollection
$TermStore = $TaxSession.TermStores[“Managed Metadata Service”] #Change to your service name
$TermStore.Id

#Get the Term Set ID
$TermStoreGroup = $TermStore.Groups[“Corporate Taxonomy”] #Change to your Terms Store name
$TermSet = $TermStoreGroup.TermSets[“Department”] #Change to your term set name
$TermSet.Id

Want more cloud insights? Listen to Cloudy with a Chance of Insights podcast:

Spotify | YouTube | Apple Podcasts

Tags

managed meta data services
Like this article?

Comments

Richard Hogan

Richard Hogan

Author & Host

Richard is a Microsoft-focused architect and consultant with deep expertise in Azure, Microsoft 365, cybersecurity, and enterprise cloud migration. He is the founder of The Microsoft Cloud Blog and co-host of the Cloudy with a Chance of Insights podcast. All views expressed are his own.

You might also like

In-depth cloud tech discussions from Microsoft experts.

Expert insights on Microsoft Azure, cloud architecture, and enterprise technology.