Export-PnPTermGroupToXml
Syntax
Export-PnPTermGroupToXml
[-Identity <Id, Title or TermGroup>]
[-Out <String>]
[-FullTemplate [<SwitchParameter>]]
[-Encoding <Encoding>]
[-Force [<SwitchParameter>]]
[-Connection <SPOnlineConnection>]
Examples
------------------EXAMPLE 1------------------
Export-PnPTermGroupToXml
Exports all term groups in the default site collection term store to the standard output
------------------EXAMPLE 2------------------
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------------------
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------------------
$termgroup = Get-PnPTermGroup -GroupName Test
$termgroup | Export-PnPTermGroupToXml -Out c:\output.xml
Retrieves a termgroup and subsequently exports that term group to a the file named 'output.xml'
Optional Parameters
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 |
Defaults to Unicode
Type: | Encoding |
Position: | Named |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Overwrites the output file if it exists.
Type: | SwitchParameter |
Position: | Named |
Accept pipeline input: | False |
Accept wildcard characters: | False |
If specified, a full provisioning template structure will be returned
Type: | SwitchParameter |
Position: | Named |
Accept pipeline input: | False |
Accept wildcard characters: | False |
The ID or name of the termgroup
Type: | Id, Title or TermGroup |
Position: | Named |
Accept pipeline input: | True |
Accept wildcard characters: | False |
File to export the data to.
Type: | String |
Position: | Named |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Related Links
Feedback
We'd love to hear your thoughts. Choose the type you'd like to provide:
Our feedback system is built on GitHub Issues. Read more on our blog.
Loading feedback...