Official Site

Konstantinos Boutsioulis

Microsoft Most Valuable Professional M365 Apps & Services

Microsoft Most Valuable Professional Business Applications

Consultant & Sr Cloud Solution Architect Modern Wokrplace

Free Material

Find hereMore than 150 Articles about Microsoft Technologies on Modern Workplace

Export SharePoint Taxonomy Term Store in txt file Using PowerShell

25 August 2023

In today's article we will see how we can use PowerShell to export to a txt file the Taxonomy of our organization that we have designed in SharePoint online in the Taxonomy Term Store First from the site settings of the home page we select Term Store Management There we need to expand all the menus to actually see our organization's Taxonomy . By running the following PowerShell however we can very easily have the Taxonomy in a txt file We run the following PowerShell with administrator privileges and we have

Code In PnP

# Declare Variables

$SiteURL = "https://mytenant.sharepoint.com"

$Folder = "Delete"

$LibUrl = "sites/NewDemo/Shared Documents"

#Connect with SharePoint Online

Connect-PnPOnline -Url $SiteURL -UseWebLogin

#Export Taxonomy in txt file

Export-PnPTaxonomy -Path c:\output.txt

As you can see in the images below after the execution i can find the txt file that created by this execution in local C disk

And if you explore this file you can see all the term groups and terms from my SharePoint Taxonomy

#SharePoint #technology #microsoft #PowerShell #PnP #digitaltransformation #cloud #mvpbuzz #m365