Remove-SCOMTierConnector

Removes a connector from a tiered management group.

Syntax

Remove-SCOMTierConnector
      -Connector <MonitoringConnector>
      -Tier <TieredManagementGroup>
      [-SCSession <Connection[]>]
      [-ComputerName <String[]>]
      [-Credential <PSCredential>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

The Remove-SCOMTierConnector cmdlet removes a connector from a tiered management group. A tiered management group is part of a connected management group that has peer-to-peer connections between its members and that shares data in a single System Center 2016 - Operations Manager console. Connectors communicate monitoring information between systems in a tiered management group. Removing a connector from a tier stops the tier from transmitting monitoring information to the connector.

Examples

Example 1: Remove connectors from a management group

PS C:\>$Tier = Get-SCOMTieredManagementGroup | Select-Object -First 1
PS C:\> Get-SCOMTierConnector -Tier $Tier | Remove-SCOMTierConnector -Tier $Tier

This example clears all connectors from a tiered management group.

The first command uses the Get-SCOMTieredManagementGroup cmdlet to get tiered management groups from the server, and passes them to the Select-Object cmdlet by using the pipeline operator. The Select-Object cmdlet selects the first tiered management group object, and stores that object in the $Tier variable. For more information, type Get-Help Select-Object.

The second command gets the connectors from the tiered management group in the $Tier variable. It then passes these connectors to the Remove-SCOMTierConnector cmdlet by using the pipeline operator. The cmdlet removes the connectors from the tiered management group in $Tier.

Parameters

-ComputerName

Specifies an array that contains the name of the computer with which to establish a connection. Valid formats include a NetBIOS name, an IP address, or a fully qualified domain name (FQDN). To specify the local computer, specify the computer name, localhost, or a dot (.).

The computer must run the System Center Data Access service.

If you do not specify this parameter, the default is the computer for the current management group connection.

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

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Connector

Specifies the connector to remove.

Type:MonitoringConnector
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Credential

Specifies the user account under which the management group connection runs. Specify a PSCredential object, such as one that the Get-Credential cmdlet returns, for this parameter. For more information about credential objects, type Get-Help Get-Credential.

If you specify a computer in the ComputerName parameter, use an account that has access to that computer. The default is the current user.

Type:PSCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-SCSession

Specifies an array of management group connection objects that contains a connection to a management server. To get management group connection objects, specify the Get-SCOMManagementGroupConnection cmdlet. If you do not specify a value for this parameter, the default is the current management group connection.

Type:Connection[]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Tier

Specifies the tiered management group from which to remove the connector. To obtain a tiered management group object, use the Get-SCOMTieredManagementGroup cmdlet.

Type:TieredManagementGroup
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False