Export-PnPTaxonomy

Exports a taxonomy to either the output or to a file.

Syntax

Export-PnPTaxonomy
      [-TermSetId <GuidPipeBind>]
                        [-TermStoreName <String>]
                        [-IncludeID [<SwitchParameter>]]
                        [-Path <String>]
                        [-Force [<SwitchParameter>]]
                        [-Delimiter <String>]
                        [-Encoding <Encoding>]
                        [-Connection <SPOnlineConnection>]

Examples

------------------EXAMPLE 1------------------

Export-PnPTaxonomy

Exports the full taxonomy to the standard output

------------------EXAMPLE 2------------------

Export-PnPTaxonomy -Path c:\output.txt

Exports the full taxonomy the file output.txt

------------------EXAMPLE 3------------------

Export-PnPTaxonomy -Path c:\output.txt -TermSet f6f43025-7242-4f7a-b739-41fa32847254

Exports the term set with the specified id

Optional Parameters

-Connection

Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.

Type:SPOnlineConnection
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-Delimiter

The path delimiter to be used, by default this is '|'

Type:String
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-Encoding

Defaults to Unicode

Type:Encoding
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-Force

Overwrites the output file if it exists.

Type:SwitchParameter
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-IncludeID

If specified will include the ids of the taxonomy items in the output. Format: <label>;#<guid>

Type:SwitchParameter
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-Path

File to export the data to.

Type:String
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-TermSetId

If specified, will export the specified termset only

Type:GuidPipeBind
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-TermStoreName

Term store to export; if not specified the default term store is used.

Type:String
Position:Named
Accept pipeline input:False
Accept wildcard characters:False