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> Parameters1 Parameter | Required | Type | Description |
---|
Tenant | True | SwitchParameter | Import all terms for the tenant. | InputFile | True | XmlDocumentPipeBind | The path to the file containing the terms to import or an XmlDocument object or XML string. |
2 Parameter | Required | Type | Description |
---|
ParentTermStore | True | SPOTermStorePipeBind | The TermStore object to import Groups into. The type must be a valid TermStore object, name, GUID, or index location. | InputFile | True | XmlDocumentPipeBind | The path to the file containing the terms to import or an XmlDocument object or XML string. |
3 Parameter | Required | Type | Description |
---|
ParentGroup | True | SPOTermGroupPipeBind | The Group object to import Term Sets into. The type must be a valid TermGroup object, SPOTermGroup object, name, or GUID. | InputFile | True | XmlDocumentPipeBind | The path to the file containing the terms to import or an XmlDocument object or XML string. |
4 Parameter | Required | Type | Description |
---|
ParentTermSet | True | SPOTermSetPipeBind | The TermSet object to import Terms into. The type must be a valid TermSet object or GUID. | InputFile | True | XmlDocumentPipeBind | The path to the file containing the terms to import or an XmlDocument object or XML string. |
5 Parameter | Required | Type | Description |
---|
ParentTerm | True | SPOTermPipeBind | The Term object to import Terms into. The type must be a valid Term object or GUID. | InputFile | True | XmlDocumentPipeBind | The path to the file containing the terms to import or an XmlDocument object or XML string. |
Detailed DescriptionImport 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" ------------------EXAMPLE 2----------------------- PS C:\> Import-SPOTaxonomy -ParentTermSet ([guid]"6067b6a8-9866-40db-962d-84097f22619a") -InputFile C:\terms.xml -Verbose ------------------EXAMPLE 3----------------------- PS C:\> Import-SPOTaxonomy -ParentTerm ([guid]"6067b6a8-9866-40db-962d-84097f22619a") -InputFile C:\terms.xml -Verbose ------------------EXAMPLE 4----------------------- PS C:\> Import-SPOTaxonomy -ParentGroup "My Group" -InputFile C:\terms.xml -Verbose ------------------EXAMPLE 5----------------------- PS C:\> Import-SPOTaxonomy -ParentTermStore 0 -InputFile C:\terms.xml -Verbose
|