Import-SPOTaxonomy

Import the Managed Metadata Terms.

Import-SPOTaxonomy -Tenant <SwitchParameter> -InputFile <XmlDocumentPipeBind>

Import-SPOTaxonomy -ParentTermStore <SPOTermStorePipeBind> -InputFile <XmlDocumentPipeBind>

Import-SPOTaxonomy -ParentGroup <SPOTermGroupPipeBind> -InputFile <XmlDocumentPipeBind>

Import-SPOTaxonomy -ParentTermSet <SPOTermSetPipeBind> -InputFile <XmlDocumentPipeBind>

Import-SPOTaxonomy -ParentTerm <SPOTermPipeBind> -InputFile <XmlDocumentPipeBind>

Parameters

1

ParameterRequiredTypeDescription
TenantTrueSwitchParameter

Import all terms for the tenant.

InputFileTrueXmlDocumentPipeBind

The path to the file containing the terms to import or an XmlDocument object or XML string.

2

ParameterRequiredTypeDescription
ParentTermStoreTrueSPOTermStorePipeBind

The TermStore object to import Groups into. The type must be a valid TermStore object, name, GUID, or index location.

InputFileTrueXmlDocumentPipeBind

The path to the file containing the terms to import or an XmlDocument object or XML string.

3

ParameterRequiredTypeDescription
ParentGroupTrueSPOTermGroupPipeBind

The Group object to import Term Sets into. The type must be a valid TermGroup object, SPOTermGroup object, name, or GUID.

InputFileTrueXmlDocumentPipeBind

The path to the file containing the terms to import or an XmlDocument object or XML string.

4

ParameterRequiredTypeDescription
ParentTermSetTrueSPOTermSetPipeBind

The TermSet object to import Terms into. The type must be a valid TermSet object or GUID.

InputFileTrueXmlDocumentPipeBind

The path to the file containing the terms to import or an XmlDocument object or XML string.

5

ParameterRequiredTypeDescription
ParentTermTrueSPOTermPipeBind

The Term object to import Terms into. The type must be a valid Term object or GUID.

InputFileTrueXmlDocumentPipeBind

The path to the file containing the terms to import or an XmlDocument object or XML string.

Detailed Description

Import 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:\> Import-SPOTaxonomy -Tenant -InputFile "c:\terms.xml"

This example imports the terms from c:\terms.xml to the Term Store associated with the tenant.

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

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

This example imports the terms from c:\terms.xml to the Term Set with ID "6067b6a8-9866-40db-962d-84097f22619a".

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

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

This example imports the terms from c:\terms.xml to the Term with ID "6067b6a8-9866-40db-962d-84097f22619a".

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

PS C:\> Import-SPOTaxonomy -ParentGroup "My Group" -InputFile C:\terms.xml -Verbose

This example imports the terms from c:\terms.xml to the Group named My Group.

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

PS C:\> Import-SPOTaxonomy -ParentTermStore 0 -InputFile C:\terms.xml -Verbose

This example imports the terms from c:\terms.xml to the Term Store at index position 0.