Skip to content

Latest commit

 

History

History
46 lines (40 loc) · 1.59 KB

ExportPnPTermGroupToXml.md

File metadata and controls

46 lines (40 loc) · 1.59 KB

#Export-PnPTermGroupToXml 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

Parameter Type Required Description
Encoding Encoding False Defaults to Unicode
Force SwitchParameter False Overwrites the output file if it exists.
FullTemplate SwitchParameter False If specified, a full provisioning template structure will be returned
Identity Id, Title or TermGroup False The ID or name of the termgroup
Out String False File 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'