Command
Get-TermStore
Description
The command to get term stores from a SharePoint site.
Index
Examples
Get all term stores
$site = Connect-Site -Url "http://myfarm1/sites/mysitecollection" Get-TermStore -Site $site Id : 77014652-1836-4640-b662-bd84a9fed426 Name : Managed Metadata Service 1 Source : /sites/mysitecollection/ DefaultLanguage : English (United States) Languages : French (France), English (United States) Site : Sharegate.Automation.Entities.Site Id : 78d93404-4b13-440a-8487-50908d942661 Name : Managed Metadata Service 2 Source : /sites/mysitecollection/ DefaultLanguage : English (United States) Languages : French (France), English (United States) Site : Sharegate.Automation.Entities.Site
Get Term Stores Matching Name
$site = Connect-Site -Url "http://myfarm1/sites/mysitecollection" Get-TermStore -Site $site -Name *Metadata*1 Id : 77014652-1836-4640-b662-bd84a9fed426 Name : Managed Metadata Service 1 Source : /sites/Sharegate.AutomationTests/ DefaultLanguage : English (United States) Languages : French (France), English (United States) Site : Sharegate.Automation.Entities.Site
Get Term Stores Matching Id
$site = Connect-Site -Url "http://myfarm1/sites/mysitecollection" Get-TermStore -Site $site -Id 78d93404-4b13-440a-8487-50908d942661 Id : 78d93404-4b13-440a-8487-50908d942661 Name : Managed Metadata Service 2 Source : /sites/Sharegate.AutomationTests/ DefaultLanguage : English (United States) Languages : French (France), English (United States) Site : Sharegate.Automation.Entities.Site
Syntax
Get-TermStore-Site <Site> [-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 | (All) |
Aliases | None |