Get-PnPTermSet

Returns a taxonomy term set

Syntax

Get-PnPTermSet
   -TermGroup <Id, Title or TermGroup>
                 [-Includes <String[]>]
                 [-Identity <Id, Name or Object>]
                 [-TermStore <Id, Name or Object>]
                 [-Connection <SPOnlineConnection>]

Examples

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

Get-PnPTermSet -TermGroup "Corporate"

Returns all termsets in the group "Corporate" from the site collection termstore

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

Get-PnPTermSet -Identity "Departments" -TermGroup "Corporate"

Returns the termset named "Departments" from the termgroup called "Corporate" from the site collection termstore

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

Get-PnPTermSet -Identity ab2af486-e097-4b4a-9444-527b251f1f8d -TermGroup "Corporate

Returns the termset with the given id from the termgroup called "Corporate" from the site collection termstore

Required Parameters

-TermGroup

Name of the term group to check.

Type:Id, Title or TermGroup
Position:0
Accept pipeline input:True
Accept wildcard characters:False

Optional Parameters

-Connection

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
-Identity

The Id or Name of a termset

Type:Id, Name or Object
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-Includes

Specify properties to include when retrieving objects from the server.

Type:String[]
Position:0
Accept pipeline input:False
Accept wildcard characters:False
-TermStore

Term store to check; if not specified the default term store is used.

Type:Id, Name or Object
Position:Named
Accept pipeline input:False
Accept wildcard characters:False

Outputs

Microsoft.SharePoint.Client.Taxonomy.TermSet