Table of contents
TOC
Collapse the table of content
Expand the table of content

Export-PnPTermGroupToXml

Bert Jansen|Last Updated: 2/20/2017
|
1 Contributor

Exports a taxonomy TermGroup to either the output or to an XML file.

Syntax

Export-PnPTermGroupToXml [-Identity <Id, Title or TermGroup>]
                         [-Out <String>]
                         [-FullTemplate [<SwitchParameter>]]
                         [-Encoding <Encoding>]
                         [-Force [<SwitchParameter>]]

Parameters

ParameterTypeRequiredDescription
EncodingEncodingFalseDefaults to Unicode
ForceSwitchParameterFalseOverwrites the output file if it exists.
FullTemplateSwitchParameterFalseIf specified, a full provisioning template structure will be returned
IdentityId, Title or TermGroupFalseThe ID or name of the termgroup
OutStringFalseFile to export the data to.

Examples

Example 1

PS:> Export-PnPTermGroupToXml

Exports all term groups in the default site collection term store to the standard output

Example 2

PS:> Export-PnPTermGroupToXml -Out output.xml

Exports all term groups in the default site collection term store to the file 'output.xml' in the current folder

Example 3

PS:> Export-PnPTermGroupToXml -Out c:\output.xml -Identity "Test Group"

Exports the term group with the specified name to the file 'output.xml' located in the root folder of the C: drive.

Example 4

PS:> $termgroup = Get-PnPTermGroup -GroupName Test
PS:> $termgroup | Export-PnPTermGroupToXml -Out c:\output.xml

Retrieves a termgroup and subsequently exports that term group to a the file named 'output.xml'

© 2017 Microsoft