System Center 2016

Working in the Datacenter – Update all agents after upgrades and rollups

It is possible to manually upgrade each agent, but that is just wasting time on something really boring, so let us do PowerShell instead

image

#Get the Admin Account
$AdminAccount = Get-SCRunAsAccount -Name ‘SCVMM Admin’

#Update the Agent
foreach($item in (Get-SCVMMManagedComputer)){
    Update-SCVMMManagedComputer -VMMManagedComputer $item -Credential $AdminAccount -RunAsynchronously
}

/mike

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.