Export-SPOTaxonomy

Export the Managed Metadata Terms.

Export-SPOTaxonomy -Tenant <SwitchParameter> [-OutputFile [<String>]]

Export-SPOTaxonomy -TermStore <SPOTermStorePipeBind> [-OutputFile [<String>]]

Export-SPOTaxonomy -Group <SPOTermGroupPipeBind> [-OutputFile [<String>]]

Export-SPOTaxonomy -TermSet <SPOTermSetPipeBind> [-OutputFile [<String>]]

Export-SPOTaxonomy -Term <SPOTermPipeBind> [-OutputFile [<String>]]

Parameters

1

ParameterRequiredTypeDescription
TenantTrueSwitchParameter

Export all terms for the tenant.

OutputFileFalseString

The path to the file to save the terms to.

2

ParameterRequiredTypeDescription
TermStoreTrueSPOTermStorePipeBind

The TermStore object containing the terms to export. The type must be a valid TermStore object, name, GUID, or index location.

OutputFileFalseString

The path to the file to save the terms to.

3

ParameterRequiredTypeDescription
GroupTrueSPOTermGroupPipeBind

The Group object containing the terms to export. The type must be a valid TermGroup object, SPOTermGroup object, name, or GUID.

OutputFileFalseString

The path to the file to save the terms to.

4

ParameterRequiredTypeDescription
TermSetTrueSPOTermSetPipeBind

The TermSet object containing the terms to export. The type must be a valid TermSet object, SPOTermSet object, or GUID.

OutputFileFalseString

The path to the file to save the terms to.

5

ParameterRequiredTypeDescription
TermTrueSPOTermPipeBind

The Term object containing the terms to export. The type must be a valid Term object or GUID.

OutputFileFalseString

The path to the file to save the terms to.

Detailed Description

Export the Managed Metadata Terms.

Copyright 2016 Falchion Consulting, LLC

> For more information on this cmdlet and others:

> http://blog.falchionconsulting.com/

> Use of this cmdlet is at your own risk.

> Gary Lapointe assumes no liability.

Examples

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

PS C:\> Export-SPOTaxonomy -TermStore 0 -OutputFile C:\terms.xml -Verbose

This example exports the term store at index position zero c:\terms.xml.

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

PS C:\> Export-SPOTaxonomy -Group "My Group" -OutputFile C:\terms.xml -Verbose

This example exports a single group and saves to c:\terms.xml.

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

PS C:\> Export-SPOTaxonomy -TermSet ([guid]"6067b6a8-9866-40db-962d-84097f22619a") -OutputFile C:\terms.xml -Verbose

This example exports a single term set and saves to c:\terms.xml.

------------------EXAMPLE 4-----------------------

PS C:\> Export-SPOTaxonomy -Tenant -OutputFile "c:\terms.xml" -Verbose

This example exports the terms for all term stores associated with the tenant and saves to c:\terms.xml.

------------------EXAMPLE 5-----------------------

PS C:\> Export-SPOTaxonomy -Term ([guid]"6067b6a8-9866-40db-962d-84097f22619a") -OutputFile C:\terms.xml -Verbose

This example exports a single term and saves to c:\terms.xml.