Export (0) Print
Expand All
Expand Minimize

Remove-ManagementGroupConnection

Remove-ManagementGroupConnection

Removes a connection to a management group.

Syntax

Parameter Set: FromMonitoringObjectProviderPath
Remove-ManagementGroupConnection [-Path] <String[]> [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: FromConnection
Remove-ManagementGroupConnection [-Connection] <Connection> [-Confirm] [-WhatIf] [ <CommonParameters>]




Detailed Description

Removes a connection to a management group.

Parameters

-Connection<Connection>

Specifies the connection to remove.


Aliases

none

Required?

true

Position?

2

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-Path<String[]>

Specifies the paths to the management groups from which to remove the specified connection. To enter multiple values, separate them by using commas.


Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before executing the command.


Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

Describes what would happen if you executed the command without actually executing the command.


Required?

false

Position?

named

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

Notes

  • For more information, type "Get-Help Remove-ManagementGroupConnection -detailed". For technical information, type "Get-Help Remove-ManagementGroupConnection -full".
    When specifying multiple values for a parameter, use commas to separate the values. For example, "<parameter-name> <value1>, <value2>".

Examples

-------------- EXAMPLE 1 --------------

This command uses Get-ManagementGroupConnection to retrieve all management group connections. It passes the results along the pipeline to Where-Object, which only passes along connections with a management server name of contoso. Those connections are removed by Remove-ManagementGroupConnection.


C:\PS>get-managementgroupconnection |where-object {$_.managementservername -eq "contoso"} |remove-managementgroupconnection

Related topics

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft