Post date: Jul 12, 2013 6:31:55 PM
I forget where I found this but it works great if you export it as a CSV then format as table it in Excel! Make a .PS1 and use ./Get-HotPlug | Export-Csv -UseCulture
$VMs = @("VM1","VM2","VM3")
ForEach ($VM in $VMs)
{
Get-VM $VM | Get-View | Select Name, `
@{N="CpuHotAddEnabled";E={$_.Config.CpuHotAddEnabled}}, `
@{N="CpuHotRemoveEnabled";E={$_.Config.CpuHotRemoveEnabled}}, `
@{N="MemoryHotAddEnabled";E={$_.Config.MemoryHotAddEnabled}}
}