I often discuss ESX configuration with customers, and during a recent conversation the topic turned to Powershell and automation. This reminded of a script I wrote back in the vSphere 4.x days. I was able to locate the file, and with just 2 minor changes found it still works with vSphere 7. It is simple; but can save quite a bit of time. Since that is one of the fundamentals of automation – I thought it worthy of sharing.
vSphere does offer a feature called Host Profiles that can help ensure hosts have the same configuration. This feature does require Enterprise Plus licensing and can take some time to setup. For those that use vSphere Standard or the older Enterprise licensing – Host Profiles are not an option. That is where PowerCLI can be really useful!