Export (0) Print
Expand All
Expand Minimize

Approve-SCOMPendingManagement

Updated: January 26, 2014

Applies To: System Center 2012 R2 Operations Manager

Approve-SCOMPendingManagement

Approves pending agent management actions.

Syntax

Parameter Set: FromAgentPendingAction
Approve-SCOMPendingManagement [-PendingAction] <AgentPendingAction[]> [[-ActionAccount] <PSCredential> ] [-PassThru] [ <CommonParameters>]




Detailed Description

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

Parameters

-ActionAccount<PSCredential>

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".


Aliases

none

Required?

false

Position?

2

Default Value

none

Accept Pipeline Input?

true (ByValue)

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.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-PendingAction<AgentPendingAction[]>

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


Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • Microsoft.EnterpriseManagement.Administration.AgentPendingAction

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


Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Retrieve pending management entries

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.


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

Related topics

 
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft