Expand Minimize
This topic has not yet been rated - Rate this topic

Set-SCOMManagementGroupConnection

Updated: September 10, 2012

Applies To: System Center 2012 - Operations Manager, System Center 2012 SP1 - Operations Manager

Set-SCOMManagementGroupConnection

Sets the specified connection as the active connection. The active connection is the connection that is implicitly used when you run a Get- cmdlet without specifying both a –ComputerName parameter and a –Credential parameter, or a –SCSession parameter. Only one connection can be active at any time. By default, the active connection is the last connection that was created by using the New-SCOMManagementGroupConnection cmdlet.

Syntax

Parameter Set: FromConnection
Set-SCOMManagementGroupConnection [-Connection] <Connection> [ <CommonParameters>]




Detailed Description

The Set-SCOMManagementGroupConnection cmdlet sets the specified connection as the active connection. The active connection is the connection that is implicitly used when you run a Get- cmdlet without specifying both a –ComputerName parameter and a –Credential parameter, or a –SCSession parameter. Only one connection can be active at any time. By default, the active connection is the last connection that was created by using the New-SCOMManagementGroupConnection cmdlet.

Parameters

-Connection<Connection>

Specifies the connection to activate. You can specify only one 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.

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 Set-SCOMManagementGroupConnection 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 --------------------------

The commands in this example activate a management group connection. The first command displays the IsActive state of the connection (False), and then the second command activates the connection. The final command verifies the activation by displaying the IsActive state of the connection, which has now changed to True.


PS C:\> Get-SCOMManagementGroupConnectionPS C:\>Get-SCOMManagementGroupConnection | Set-SCOMManagementGroupConnectionPS C:\>Get-SCOMManagementGroupConnection

Related topics


Get-SCOMManagementGroupConnection

New-SCOMManagementGroupConnection

Remove-SCOMManagementGroupConnection

 
Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.