Skip to content

Latest commit

 

History

History
113 lines (83 loc) · 2.42 KB

Get-PnPTermSet.md

File metadata and controls

113 lines (83 loc) · 2.42 KB
external help file applicable schema
SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
2.0.0

Get-PnPTermSet

SYNOPSIS

Returns a taxonomy term set

SYNTAX

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

EXAMPLES

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

PS:> Get-PnPTermSet -TermGroup "Corporate"

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

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

PS:> Get-PnPTermSet -Identity "Departments" -TermGroup "Corporate"

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

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

PS:> 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

PARAMETERS

-Identity

The Id or Name of a termset

Type: Id, Name or Object
Parameter Sets: (All)

Required: False
Position: Named
Accept pipeline input: False

-Includes

Specify properties to include when retrieving objects from the server.

Type: String[]
Parameter Sets: 

Required: False
Position: 0
Accept pipeline input: False

-TermGroup

Name of the term group to check.

Type: Id, Title or TermGroup
Parameter Sets: (All)

Required: True
Position: 0
Accept pipeline input: True

-TermStore

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

Type: Id, Name or Object
Parameter Sets: (All)

Required: False
Position: Named
Accept pipeline input: False

-Connection

Optional connection to be used by cmdlet. Retrieve the value for this parameter by eiter specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.

Type: SPOnlineConnection
Parameter Sets: (All)

Required: False
Position: Named
Accept pipeline input: False

OUTPUTS

RELATED LINKS

SharePoint Developer Patterns and Practices