Share via


Get-SCOMManagementGroupConnection

Get-SCOMManagementGroupConnection

Gets management group connections.

Syntax

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

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

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

Detailed Description

The Get-SCOMManagementGroupConnection cmdlet gets objects that represent persistent connections to System Center 2012 – Operations Manager management groups. You can get all connections, or get connections for specific computers or management groups. For more information about persistent connections, type Get-Help about_OpsMgr_Connections.

You can use the New-SCOMManagementGroupConnection to create a connection and you can use the Remove-SCOMManagementGroupConnection to remove a connection.

Parameters

-ComputerName<String[]>

Specifies an array of names of computers. You can use NetBIOS names, IP addresses, or fully qualified domain names (FQDNs). 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?

false

Accept Wildcard Characters?

false

-Id<Guid[]>

Specifies an array of IDs of management groups.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ManagementGroupName<String[]>

Specifies an array of names of the management groups.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

false

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 this 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 persistent connections

This command gets all management group connections.

PS C:\> Get-SCOMManagementGroupConnection

New-SCOMManagementGroupConnection

Remove-SCOMManagementGroupConnection

Set-SCOMManagementGroupConnection