Name
Get-TermStore
SYNTAX
Get-TermStore [-Site] <Site> [[-Name] <String[]>] [[-Id] <String[]>]
DESCRIPTION
The command to get term stores from a SharePoint site.
PARAMETERS
-Id <String[]>
Specifies the id (Wildcards supported).
Required? | False |
Position? | 4 |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | True |
Parameter set name | (All) |
Aliases | None |
-Name <String[]>
Specifies the name (Wildcards supported).
Required? | False |
Position? | 3 |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | True |
Parameter set name | (All) |
Aliases | None |
-Site <Site>
Specifies the SharePoint site.
Required? | True |
Position? | 0 |
Default value | |
Accept pipeline input? | true (ByValue, ByPropertyName) |
Accept wildcard characters? | False |
Parameter set name | (All) |
Aliases | None |
INPUTS
Site[]
OUTPUTS
TermStore[]
All term stores matching parameters.
EXAMPLES
-------------- Example: 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
-------------- Example: 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
-------------- Example: 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
Comments
0 comments
Please sign in to leave a comment.