Deny-SCOMPendingManagement
Updated: September 10, 2012
Applies To: System Center 2012 - Operations Manager, System Center 2012 SP1 - Operations Manager
Deny-SCOMPendingManagement
Syntax
Parameter Set: FromAgentPendingAction Deny-SCOMPendingManagement [-PendingAction] <AgentPendingAction[]> [-PassThru] [-Confirm] [-WhatIf] [ <CommonParameters>]
Detailed Description
The Deny-SCOMPendingManagement cmdlet denies the specified pending management actions.
Parameters
-PassThru
Returns an object representing the pending action. 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 one or more pending actions to deny. Enter a variable that represents the pending actions, or type a command that gets the pending actions.
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 |
-Confirm
Prompts you for confirmation before executing the command.
|
Required? |
false |
|
Position? |
named |
|
Default Value |
false |
|
Accept Pipeline Input? |
false |
|
Accept Wildcard Characters? |
false |
-WhatIf
Describes what would happen if you executed the command without actually executing the command.
|
Required? |
false |
|
Position? |
named |
|
Default Value |
false |
|
Accept Pipeline Input? |
false |
|
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. The task is queued or awaiting administrator approval.
Examples
-------------------------- EXAMPLE 1 --------------------------
Description
-----------
This command gets the agent management entries that are pending with an action of "ManualApproval", and, by using the WhatIf parameter, displays what action would occur if the command was implemented. In this case, all targets with a pending action of "ManualApproval" would be denied.
PS C:\>Get-SCOMPendingManagement | where {$_.AgentPendingActionType -eq "ManualApproval"} | Deny-SCOMPendingManagement -WhatIf
