Share via


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