In this article we will be seeing about how to create a new term, termset and group in SharePoint 2010 using powershell. In this article we will be seeing the following:
Create a new group for the term store: $taxonomySession=Get-SPTaxonomySession -Site "http://servername:10/" $termStore=$taxonomySession.TermStores["MMS"] $group=$termStore.CreateGroup("SharePoint Group") $termStore.CommitAll() Create a new termset for the group: $taxonomySession=Get-SPTaxonomySession -Site "http://servername:10/" $termStore=$taxonomySession.TermStores["MMS"] $group=$termStore.Groups["SharePoint Group"] $termSet=$group.CreateTermSet("Word Automation Term Set") $termStore.CommitAll() Create a new term for the termset: $taxonomySession=Get-SPTaxonomySession -Site "http://servername:10/" $termStore=$taxonomySession.TermStores["MMS"] $group=$termStore.Groups["SharePoint Group"] $termSet=$group.TermSets["Word Automation Term Set"] $term1=$termSet.CreateTerm("Conversion",1033) $termStore.CommitAll()
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: