The Deployment Bunny

OS Deployment, Virtualization, Microsoft based Infrastructure…

  • Archives

  • Meta

Archive for the ‘System Center Virtual Machine Manager’ Category

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

Posted by Mikael Nystrom on April 26, 2017

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

Posted in System Center 2016, System Center Virtual Machine Manager | Tagged: , | Leave a Comment »