Share via


Approve-SCOMPendingManagement

Approves pending agent management actions.

Syntax

Default (Default)

Approve-SCOMPendingManagement
    [-PendingAction] <AgentPendingAction[]>
    [[-ActionAccount] <PSCredential>]
    [-PassThru]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Description

The Approve-SCOMPendingManagement cmdlet approves pending management actions in System Center - Operations Manager.

Examples

Example 1: Retrieve pending management entries

PS C:\>Get-SCOMPendingManagement | where {$_.AgentPendingActionType -eq "ManualApproval"} | Approve-SCOMPendingManagement -WhatIf

This command retrieves the agent management entries that are pending with an action of ManualApproval. By using the WhatIf parameter, the cmdlet displays the actions that occur if the command was implemented.

Parameters

-ActionAccount

Specifies the credentials for a pending action. To obtain a PSCredential object, use the Get-Credential cmdlet. For more information, type " Get-Help Get-Credential".

Parameter properties

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

Parameter sets

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

-Confirm

Prompts you for confirmation before running the cmdlet.

Parameter properties

Type:SwitchParameter
Default value:False
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

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

-PassThru

Indicates that the cmdlet creates or modifies an object that a command can use in the pipeline. By default, this cmdlet does not generate any output.

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

-PendingAction

Specifies an array of pending actions to approve. For information about how to get a pending action object, type "Get-Help Get-SCOMPendingManagement".

Parameter properties

Type:

AgentPendingAction[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

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

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Parameter properties

Type:SwitchParameter
Default value:False
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

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

Inputs

Microsoft.EnterpriseManagement.Administration.AgentPendingAction

Represents a task that targets an agent on a managed computer, pending administrator approval.