Skip to content

Instantly share code, notes, and snippets.

@bedecarroll
Created October 12, 2013 14:10
Show Gist options
  • Save bedecarroll/6950399 to your computer and use it in GitHub Desktop.
Save bedecarroll/6950399 to your computer and use it in GitHub Desktop.
Attaching VMware Update Manager baselines to lots of datacentres.
Add-PSSnapin *vmware*
Connect-VIServer <your vCenter Server>
$baseline = Get-Baseline -Name "Vendor VIBs"
Get-Datacenter | Where-Object Name -notlike "<Insert name of exclusions here>" | % { Attach-Baseline -Baseline $baseline -Entity $_ }
Disconnect-VIServer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment