Share via


Get-SCSMManagementGroupConnection

Get-SCSMManagementGroupConnection

Gets all management group connections.

Syntax

Parameter Set: FromComputerNames
Get-SCSMManagementGroupConnection [-ComputerName] <String[]> [ <CommonParameters>]

Parameter Set: FromInstanceId
Get-SCSMManagementGroupConnection [-Id] <Guid[]> [ <CommonParameters>]

Parameter Set: FromManagementGroupName
Get-SCSMManagementGroupConnection [-ManagementGroupName] <String[]> [ <CommonParameters>]

Detailed 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.

Parameters

-ComputerName<String[]>

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

Aliases

none

Required?

true

Position?

1

Default Value

localhost

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-Id<Guid[]>

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

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-ManagementGroupName<String[]>

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

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • System.String

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

Outputs

The output type is the type of the objects that the cmdlet emits.

  • SessionObject

    This cmdlet generates a SessionObject object.

Examples

Example 1: Get all available management group connections

This command retrieves all the available management group connections.

PS C:\>Get-SCSMManagementGroupConnection

New-SCSMManagementGroupConnection

Remove-SCSMManagementGroupConnection

Set-SCSMManagementGroupConnection