Get-SCSMManagementGroupConnection

Gets all management group connections.

Syntax

Get-SCSMManagementGroupConnection []
Get-SCSMManagementGroupConnection
   [-ComputerName] <String[]>
   [<CommonParameters>]
Get-SCSMManagementGroupConnection
   [-Id] <Guid[]>
   [<CommonParameters>]
Get-SCSMManagementGroupConnection
   [-ManagementGroupName] <String[]>
   [<CommonParameters>]

Description

The Get-SCSMManagementGroupConnection 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-SCSMManagementGroupConnection


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

This command retrieves all the available management group connections.

Required 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 (.).

Type:String[]
Position:1
Default value:Localhost
Accept pipeline input:False
Accept wildcard characters:False
-Id

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

Type:Guid[]
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ManagementGroupName

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

Type:String[]
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

System.String

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

Outputs

SessionObject

This cmdlet generates a SessionObject object.