The Microsoft Cloud Blog

Expert insights on Microsoft Azure, Cloud Architecture, and Enterprise Technology

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

Loading comments...

Richard Hogan - Global Chief Architect, Microsoft Practice

Richard Hogan

Global Chief Architect, Microsoft Practice | IBM

Global Chief Architect, Microsoft Practice at IBM. 20+ years experience working at the intersection of cloud architecture, security, and emerging AI capabilities across Azure and the wider Microsoft ecosystem. Host of the Cloudy with a Chance of Insights podcast. Regular speaker at tech conferences and active contributor to the Microsoft Tech Community.

You might also like

Practical discussions on cloud engineering, architecture, and the reality behind the diagrams.

Bi-weekly reflections on cloud architecture, Azure, and the decisions teams wrestle with in practice.