Set-SCOpsMgrConnection

Updates the Operations Manager connection settings.

Syntax

Set-SCOpsMgrConnection [-EnableMaintenanceModeIntegration <Boolean>] [-EnableOpsMgrConnection <Boolean>]
 [-EnablePRO <Boolean>] [-JobVariable <String>] [-PROTipID <Guid>] [-RunAsynchronously]
 [-VMMServer <ServerConnection>] [<CommonParameters>]

Description

The Set-SCOpsMgrConnection cmdlet updates the Operations Manager connection. Settings that you can change include whether the connection is enabled or disabled, and whether maintenance mode integration is enabled for the connection.

Examples

Example 1: Disable the Operations Manager connection

PS C:\> Set-SCOpsMgrConnection -EnableOpsMgrConnection $False

This command disables the Operations Manager connection by setting the EnableOpsMgrConnection to $False.

Example 2: Enable the Operations Manager connection

PS C:\> Set-SCOpsMgrConnection -EnableOpsMgrConnection $True

This command enables the Operations Manager connection by setting the EnableOpsMgrConnection variable to $True.

Parameters

-EnableMaintenanceModeIntegration

Indicates whether maintenance mode integration is enabled for this connection.

Type:Boolean
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-EnableOpsMgrConnection

Indicates whether the connection to the Operations Manager management server is enabled.

Type:Boolean
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-EnablePRO

Indicates whether PRO is enabled for this connection.

Type:Boolean
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-JobVariable

Specifies that job progress is tracked and stored in the variable named by this parameter.

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PROTipID

Specifies the ID of the Performance and Resource Optimization tip (PRO tip) that triggered this action. This parameter lets you audit PRO tips.

Type:Guid
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RunAsynchronously

Indicates that the job runs asynchronously so that control returns to the command shell immediately.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-VMMServer

Specifies a Virtual Machine Manager (VMM) server object.

Type:ServerConnection
Required:False
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Outputs

OpsMgrConnection

This cmdlet returns an **OpsMgrConnection** object.