Sdílet prostřednictvím


Set-SCOpsMgrConnection

Updates the Operations Manager connection settings.

Syntax

Default (Default)

Set-SCOpsMgrConnection
    [-VMMServer <ServerConnection>]
    [-EnableOpsMgrConnection <Boolean>]
    [-EnablePRO <Boolean>]
    [-EnableMaintenanceModeIntegration <Boolean>]
    [-RunAsynchronously]
    [-PROTipID <Guid>]
    [-JobVariable <String>]
    [<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.

Parameter properties

Type:Boolean
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-EnableOpsMgrConnection

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

Parameter properties

Type:Boolean
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-EnablePRO

Indicates whether PRO is enabled for this connection.

Parameter properties

Type:Boolean
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-JobVariable

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

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments: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.

Parameter properties

Type:Guid
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-RunAsynchronously

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

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-VMMServer

Specifies a Virtual Machine Manager (VMM) server object.

Parameter properties

Type:ServerConnection
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Outputs

OpsMgrConnection

This cmdlet returns an OpsMgrConnection object.