The Deployment Bunny

OS Deployment, Virtualization, Microsoft based Infrastructure…

  • Archives

  • Meta

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

Leave a Reply

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

WordPress.com Logo

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

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

 
%d bloggers like this: