Share via


Deny-SCOMPendingManagement

Denies pending agent management actions.

Syntax

Default (Default)

Deny-SCOMPendingManagement
    [-PendingAction] <AgentPendingAction[]>
    [-PassThru]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Description

The Deny-SCOMPendingManagement cmdlet denies pending management actions in System Center - Operations Manager.

Examples

Example 1: Deny pending management entries

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

This command retrieves a list of agent management entries that are pending with an action of ManualApproval, and passes the output to the Deny-SCOMPendingManagement cmdlet by using the pipeline operator. By using the WhatIf parameter, the cmdlet displays what action would occur if the command was implemented. In this case, all targets with a pending action of ManualApproval would be denied.

Parameters

-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 deny. 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. The task is queued or awaiting administrator approval.