PowerShell script to update VMM Agent on all VMM Managed Computers after Update Rollup is installed on VMM Server.
You can find the AgentVersion here: http://social.technet.microsoft.com/wiki/contents/articles/15361.list-of-build-numbers-for-system-center-virtual-machine-manager-vmm.aspx
1 2 3 4 5 |
$credential = Get-SCRunAsAccount -Name "VMMAdminAccount" $managedComputer = Get-SCVMMManagedComputer | where -Property VersionState -eq "UpgradeAvailable" foreach ($server in $managedComputer) { Update-SCVMMManagedComputer -Credential $credential -RunAsynchronously -VMMManagedComputer $server } |