Skip to main content
Get Term Set
Updated this week

Name

Get-TermSet

Description

The command to get term sets of a term group from a SharePoint site.

Index

Examples

Get All Term Sets from a Term Group

$site = Connect-Site -Url "http://myfarm1/sites/mysitecollection"
Get-TermSet -Site $site -TermGroupName "MyTermGroup"

Get Term Sets from a Term Group Matching Name

$site = Connect-Site -Url "http://myfarm1/sites/mysitecollection"
Get-TermSet -Site $site -Name MyName*,MySpecificName -TermGroupName "MyTermGroup"

Note: The * symbol is used to call multiple objects with a similar name.

Get Term Sets from a Term Group Matching Id

$site = Connect-Site -Url "http://myfarm1/sites/mysitecollection"
Get-TermSet -Site $site -Id e9f930a3-d1bc-44c9-a996-2eb912b8e62d -TermGroupName "MyTermGroup"

Syntax

Get-TermSet-TermGroupName <String>-Site <Site>[-TermStoreName <String>][-Name <String[]>][-Id <String[]>]
Get-TermSet-TermGroupName <String>-TermStore <TermStore>[-Name <String[]>][-Id <String[]>]
Get-TermSet-TermGroup <TermGroup>[-Name <String[]>][-Id <String[]>]

Parameters

-Id <String[]>

Specifies the id (Wildcards supported).

Required?

False

Default value

None

Accept pipeline input?

False

Accept wildcard characters?

True

Parameter set name

(All)

Aliases

None

-Name <String[]>

Specifies the name (Wildcards supported).

Required?

False

Default value

None

Accept pipeline input?

False

Accept wildcard characters?

True

Parameter set name

(All)

Aliases

None

-Site <Site>

Specifies the SharePoint site.

Required?

True

Default value

None

Accept pipeline input?

True (ByValue, ByPropertyName)

Accept wildcard characters?

False

Parameter set name

Default

Aliases

None

-TermGroup <TermGroup>

Specifies the term group.

Required?

True

Default value

None

Accept pipeline input?

True (ByValue, ByPropertyName)

Accept wildcard characters?

False

Parameter set name

TermGroup

Aliases

None

-TermGroupName <String>

Specifies the term group name.

Required?

True

Default value

None

Accept pipeline input?

False

Accept wildcard characters?

False

Parameter set name

Default, TermStore

Aliases

None

-TermStore <TermStore>

Specifies the term store.

Required?

True

Default value

None

Accept pipeline input?

True (ByValue, ByPropertyName)

Accept wildcard characters?

False

Parameter set name

TermStore

Aliases

None

-TermStoreName <String>

Specifies the term store name.

Required?

False

Default value

None

Accept pipeline input?

False

Accept wildcard characters?

False

Parameter set name

Default

Aliases

None

Did this answer your question?