Share via


Get-SCManagementGroupConnection

Gets all management group connections.

Syntax

Empty (Default)

Get-SCManagementGroupConnection
    [<CommonParameters>]

FromComputerNames

Get-SCManagementGroupConnection
    [-ComputerName] <String[]>
    [<CommonParameters>]

FromInstanceId

Get-SCManagementGroupConnection
    [-Id] <Guid[]>
    [<CommonParameters>]

FromManagementGroupName

Get-SCManagementGroupConnection
    [-ManagementGroupName] <String[]>
    [<CommonParameters>]

Description

The Get-SCManagementGroupConnection cmdlet retrieves all management group connections, including the IsActive state of these connections. Only one connection will have its IsActive state set to True, because only one connection can be active at any time.

Examples

Example 1: Get all available management group connections

PS C:\>Get-SCManagementGroupConnection


ManagementServerName    ManagementGroupName                 Domain          UserName             IsActive
--------------------    -------------------                 ------          --------             --------
localhost               MyManagementGroup                                                        True

This command retrieves all the available management group connections.

Parameters

-ComputerName

Specifies a computer with which to establish a connection. The computer must be running the System Center Data Access service. The default value is the computer for the current management group connection.

Valid formats include a NetBIOS name, an IP address, or a fully qualified domain name (FQDN). To specify the local computer, type the computer name, "localhost", or a dot (.).

Parameter properties

Type:

System.String[]

Default value:Localhost
Supports wildcards:False
DontShow:False

Parameter sets

FromComputerNames
Position:1
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Id

Specifies the ID of a management group for which to retrieve connections.

Parameter properties

Type:

System.Guid[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

FromInstanceId
Position:1
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ManagementGroupName

Specifies the names of the management groups for which to retrieve connections.

Parameter properties

Type:

System.String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

FromManagementGroupName
Position:1
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

System.String

You can pipe a computer name to the ComputerName parameter of the Get-SCManagementGroupConnection cmdlet.

Outputs

SessionObject

This cmdlet generates a SessionObject object.