Remove-SCOMManagementGroupConnection
Remove-SCOMManagementGroupConnection
Deletes persistent connections to management groups.
Syntax
Parameter Set: FromConnection
Remove-SCOMManagementGroupConnection [-Connection] <Connection[]> [-Confirm] [-WhatIf] [ <CommonParameters>]
Detailed Description
The Remove-SCOMManagementGroupConnection cmdlet deletes persistent connections to System Center 2012 – Operations Manager management groups. To obtain a connection, use the Get-SCOMManagementGroupConnection cmdlet. For more information about persistent connections, type Get-Help about_OpsMgr_Connections
.
Parameters
-Connection<Connection[]>
Specifies an array of Connection objects. To obtain a connection object, use the Get-SCOMManagementGroupConnection cmdlet.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
true (ByValue) |
Accept Wildcard Characters? |
false |
-Confirm
Prompts you for confirmation before running the cmdlet.
Required? |
false |
Position? |
named |
Default Value |
false |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? |
false |
Position? |
named |
Default Value |
false |
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.
Microsoft.SystemCenter.Core.Connection.Connection
You can pipe a management group connection to the Connection parameter of this cmdlet.
Outputs
The output type is the type of the objects that the cmdlet emits.
- This cmdlet does not generate any output.
Examples
Example 1: Remove the active connection
This command deletes the currently active management group connection. The command uses the Get-SCOMManagementGroupConnection cmdlet to get all connections and passes them to a conditional that drops any inactive connections from the pipeline. The command passes any active connection to the Remove-SCOMManagementGroupConnection cmdlet by using the pipeline operator.
PS C:\> Get-SCOMManagementGroupConnection |?{$_.IsActive } | Remove-SCOMManagementGroupConnection
Related topics
Get-SCOMManagementGroupConnection