VI Toolkit: Patch an ESX host with VUM


This script will automate the following steps:

  • Enter Maintenance mode
  • Attach baselines
  • Scan Host and check Compliance
  • Remediate  Host
  • Detach baselines
  • Exit Maintenance mode

This is my first “trial & error” script with the VMware.VumAutomation snapin. If you have any tips, please leave a comment.

You can download the script here: