Table of Contents

Get-PnPTermSet

SYNOPSIS

Returns a taxonomy term set

SYNTAX

Get-PnPTermSet [-Identity <TaxonomyTermSetPipeBind>] [-TermGroup] <TaxonomyTermGroupPipeBind>
 [-TermStore <TaxonomyTermStorePipeBind>] [-Connection <PnPConnection>] [-Includes <String[]>] 

DESCRIPTION

This cmdlet returns a termset from the taxonomy store.

EXAMPLES

EXAMPLE 1

Get-PnPTermSet -TermGroup "Corporate"

Returns all termset's 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

EXAMPLE 4

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

Returns the termset with the given name from the termgroup called "Corporate" including the terms below it from the site collection termstore

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: PnPConnection
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Identity

The Id or Name of a termset

Type: TaxonomyTermSetPipeBind
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-TermGroup

Name of the term group to check.

Type: TaxonomyTermGroupPipeBind
Parameter Sets: (All)
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-TermStore

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

Type: TaxonomyTermStorePipeBind
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Includes

Optionally allows properties to be retrieved for the returned term set which are not included in the response by default

Type: String[]
Parameter Sets: (All)

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Microsoft 365 Patterns and Practices