Remove-SCSMManagementGroupConnection
Remove-SCSMManagementGroupConnection
Removes a management group connection.
Syntax
Parameter Set: FromConnection
Remove-SCSMManagementGroupConnection [-Connection] <Connection[]> [-Confirm] [-WhatIf] [ <CommonParameters>]
Detailed Description
The Remove-SCManagementGroupConnection cmdlet removes a management group connection.
Parameters
-Connection<Connection[]>
Specifies the connection, originating from the Get-SCSMManagementGroupConnection cmdlet, to be removed.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
true (ByValue, ByPropertyName) |
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 the 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: Display and remove management server sessions
These commands display management server sessions, remove the active management server session, and then display the available sessions to verify the removal.
PS C:\>Get-SCSMManagementGroupConnection
PS C:\>Get-SCSMManagementGroupConnection |?{$_.IsActive }
PS C:\>Get-SCSMManagementGroupConnection |?{$_.IsActive } | Remove-SCSMManagementGroupConnection
PS C:\>Get-SCSMManagementGroupConnection
Related topics
Get-SCSMManagementGroupConnection