1 min read
PowerShellSharePoint 2013Term Store

SharePoint 2013 :Adding shared properties to a term set using PowerShell

To update or create a shared property for a term in your term store run the following script.

#Load SharePoint PowerShell Snap In
Add-PSSnapin Microsoft.SharePoint.PowerShell;

#Get Taxonomy Session
$session =  new-object Microsoft.SharePoint.Taxonomy.TaxonomySession(Central Admin URL);
#Get Managed Metadata Service
$Store = $Session.TermStores[“Managed Metadata Service”];
#Get Term Group
$Group = $Store.Groups[“Group Name”];
#Get Term Set
$TermSet = $Group.TermSets[“Term Set Name”];
#Get Term
$Term = $TermSet.Terms[“Term Name”];
#Add Property, if property exists it will be over written
$Term.SetCustomProperty(“Property Name”, “Property Value”);
#Commit Changes
$Store.CommitAll();

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

Spotify | YouTube | Apple Podcasts

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.