The following PowerShell can be used to update a terms sets submission policy to open or closed. #Connect to Central Admin $Session = new-object Microsoft.SharePoint.Taxonomy.TaxonomySession("Central Admin URL") #Connect to Managed Metadata Service $Store = $Session.TermStores["Managed Metadata Service Name"] #Get the group $Group = $Store.Groups["Group Name"]; #Get the Term Set $TermSet = $Group.TermSets["Term Set Name"]; #Update... Continue Reading →
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... Continue Reading →
SharePoint 2010: Accessing the Managed Metadata Service via Code
I was recently asked to provide some code which could query the managed metadata service of a SharePoint 2010 implementation and extract the terms for use in a separate web site. This turned out to be a bit more complicated than I initially thought as the architecture called for use of the SharePoint Web Services,... Continue Reading →