Powershell one-liner for checking if Hot-Add is Enabled

Have you ever wanted to check if a certain subset of your VMs are Hot-Add enabled?  Here is a quick and easy way to check.

Define your servers that you want to check, you can manually define that through a list

$vms = "*server01*,*Server02*","*Server03* 
$vms = get-vmhost *host* | get-vm

Then after you define what guests you want to check, run the one liner.

foreach ($item in $vms) {get-vm $item | get-view | select -ExpandProperty config | select Name, CPUHotAddEnabled, MemoryHotAddEnabled}

It produces a very simple but precise output stating if it is enabled or not.