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


#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


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

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