Upgrade Virtual Machine Hardware

You can upgrade virtual machine hardware and VMware Tools for all virtual machines in a data center.

Prerequisites

Verify that you are connected to a vCenter Server system.

Procedure

  1. Retrieve all virtual machines in the Datacenter data center.
    $vms = Get-VM -Location Datacenter
  2. Retrieve all virtual machine upgrade baselines.
    $ugradeBaselines = Get-Baseline -TargetType VM -BaselineType Upgrade
  3. Remediate all virtual machines against the virtual machine upgrade baselines.
    foreach ($vm in $vms) {
    Update-Entity -Entity $vm -Baseline $upgradeBaselines
    }