Set-SCOMManagementGroupConnection
Set-SCOMManagementGroupConnection
Makes a management group connection become the active connection.
Syntax
Parameter Set: FromConnection
Set-SCOMManagementGroupConnection [-Connection] <Connection> [ <CommonParameters>]
Detailed Description
The Set-SCOMManagementGroupConnection cmdlet makes a persistent connection for an System Center 2012 – Operations Manager management group become the active connection. Only one active persistent connection can exist at a time. When you create a connection by using the New-SCOMManagementGroupConnection cmdlet, that connection becomes the active connection.
To determine the current active connection, use the Get-SCOMManagementGroupConnection cmdlet to get connection objects. A connection object includes the IsActive property. If this value is $True, the connection is the active management group connection.
For more information about persistent connections, type Get-Help about_OpsMgr_Connections
.
Parameters
-Connection<Connection>
Specifies the connection to become the active connection.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
true (ByValue) |
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.
None.
This cmdlet does not generate any output.
Examples
Example 1: Make a connection active
This command uses the Get-SCOMManagementGroupConnection cmdlet to get all the management group connections. The command passes connections to the Set-SCOMManagementGroupConnection cmdlet by using the pipeline operator. The command makes each connection passed to it become the active connection.
PS C:\> Get-SCOMManagementGroupConnection | Set-SCOMManagementGroupConnection
Related topics
Get-SCOMManagementGroupConnection