Operations Manager Command Shell Main Menu
Welcome to TechNet Blogs Sign in | Join | Help
Approve Manual Installations and Updates

Approve Manual Installation for single agent

Get-AgentPendingAction | where {$_.AgentName –match “netbios_name”} | Approve-AgentPendingAction

Approve Manual Installation for all pending agents

Get-AgentPendingAction | where {$_.AgentPendingActionType –match “ManualApproval”} | Approve-AgentPendingAction

Approve Manual Installation for n number of agents

$i = 1; foreach ($agent in Get-AgentPendingAction | where {$_.AgentPendingActionType –eq “ManualApproval”}) {if ($i -le n) {$agent | Approve-AgentPendingAction;$i++}}

**To approve updates to agents, you can use the same commands here. Just replace “ManualApproval” with “UpdateFailed”. This is the Pending Action Type string to match for updates.

main menu

Posted: Thursday, March 19, 2009 7:36 PM by jtalmquist

Comments

Jonathan Almquist on Operations Manager said:

UPDATED PAGE ON 03-19-2009 If you have visited my Command Shell blog page before, I have posted notice

# March 19, 2009 9:38 PM

Jonathan Almquist on Operations Manager said:

I was working with a large customer last week, and found some very interesting performance metrics which

# May 11, 2009 9:49 PM
Leave a Comment

(required) 

(required) 

(optional)

(required) 

  
Enter Code Here: Required

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Page view tracker