Skip to main content
Get Term Group
Updated this week

Name

Get-TermGroup

Description

The command to get term groups of a term store from a SharePoint site.

Examples

Get All Term Groups

$site = Connect-Site -Url "http://myfarm1/sites/mysitecollection"
Get-TermGroup -Site $site

Get Term Groups Matching Name

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

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

Get Term Groups Matching Id

$site = Connect-Site -Url "http://myfarm1/sites/mysitecollection"
Get-TermGroup -Site $site -Id 2f020b98-465d-4f9b-8103-6002d9280bd7

Syntax

Get-TermGroup-Site <Site>[-TermStoreName <String>][-Name <String[]>][-Id <String[]>]
Get-TermGroup-TermStore <TermStore>[-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

-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 (Wildcards supported).

Required?

False

Default value

None

Accept pipeline input?

False

Accept wildcard characters?

True

Parameter set name

Default

Aliases

None

Did this answer your question?