Approve-SCOMPendingManagement

Approves pending agent management actions.

Syntax

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

Description

The Approve-SCOMPendingManagement cmdlet approves pending management actions in System Center 2016 - 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".

Type:PSCredential
Position:2
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters: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.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters: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".

Type:AgentPendingAction[]
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-WhatIf

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

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.EnterpriseManagement.Administration.AgentPendingAction

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