Citrix Virtual Apps and Desktops SDK

Get-Configservicegroup

Gets the service groups that match the parameters supplied.

Syntax

Get-ConfigServiceGroup [-ServiceGroupUid <Guid>] [-ServiceGroupName <String>] [-ServiceType <String>] [-Metadata <String>] [-Property <String[]>] [-ReturnTotalRecordCount] [-MaxRecordCount <Int32>] [-Skip <Int32>] [-SortBy <String>] [-Filter <String>] [-BearerToken <String>] [-AdminAddress <String>] [<CommonParameters>]
<!--NeedCopy-->

Detailed Description

Use this cmdlet to retrieve existing service groups that match the parameters supplied. If no parameters are supplied, all the service groups are returned.

Parameters

Name Description Required? Pipeline Input Default Value
ServiceGroupUid The unique identifier for the service group. false false  
ServiceGroupName   false false  
ServiceType The service type for the service group. false false  
Metadata Gets records with matching metadata entries.
The value being compared with is a concatenation of the key name, a colon, and the value. For example: -Metadata “abc:x*” matches records with a metadata entry having a key name of “abc” and a value starting with the letter “x”.
false false  
Property Specifies the properties to be returned. This is similar to piping the output of the command through Select-Object, but the properties are filtered more efficiently at the server. false false  
ReturnTotalRecordCount See about_Config_Filtering for details. false false false
MaxRecordCount See about_Config_Filtering for details. false false 250
Skip See about_Config_Filtering for details. false false 0
SortBy See about_Config_Filtering for details. false false  
Filter See about_Config_Filtering for details. false false  
BearerToken Specifies the bearer token assigned to the calling user false false  
AdminAddress Specifies the address of a XenDesktop controller that the PowerShell snap-in connects to. You can provide this as a host name or an IP address. false false LocalHost. Once a value is provided by any cmdlet, this value becomes the default.

Input Type

Return Values

Citrix.Configuration.Sdk.Servicegroup
This Represents A Service Instance And Has The Following Parameters;
Servicegroupuid <Guid>
The Unique Identifier For The Service Group.
Servicegroupname <String>
The Name Of The Service Group.
Servicetype <String>
The Type Of The Service Group.
Metadata <Citrix.Configuration.Sdk.Metadata[]>
The Metadata For The Service Group.

Notes

In the case of failure, the following errors can result.
Error Codes ———–
DatabaseNotConfigured The operation could not be completed because the database for the service is not configured. PartialData Only a subset of the available data was returned. CouldNotQuueryDatabase The Query required to get the database was not defined. CommunicationError An error occurred while communicating with the service. InvalidFilter A filtering expression was supplied that could not be interpreted for this cmdlet. ExceptionThrown An unexpected error occurred. To locate more details, see the Windows event logs on the controller being used or examine the XenDesktop logs.

Examples

Example 1

C:\>Get-ConfigServiceGroup
<!--NeedCopy-->

Description

Return all the service groups that are registered in the Configuration Service.

Example 2

C:\>Get-ConfigRegisteredServiceInstance -ServiceType "config"
<!--NeedCopy-->

Description

Return all the service groups that are registered in the Configuration Service and are of type ‘config’ (i.e. the service groups for the Configuration Service).

Get-Configservicegroup