Approve-SCOMPendingManagement
Approves pending agent management actions.
Approve-SCOMPendingManagement
[-PendingAction] <AgentPendingAction[]>
[[-ActionAccount] <PSCredential>]
[-PassThru]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
The Approve-SCOMPendingManagement cmdlet approves pending management actions in System Center - Operations Manager.
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.
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 |
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 |
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 |
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 |
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 |
Microsoft.EnterpriseManagement.Administration.AgentPendingAction
Represents a task that targets an agent on a managed computer, pending administrator approval.