Hello.
A simple question, I think...
It's possible to know the host status? aka: in Red State, Yellow State or Ok...
I can see that Get-VMHost shows State and ConnectionState attributes. Maybe State?
Thank you in advance.
Best regards.
Try with
Get-VMHost | Select Name,@{N="Alarm State";E={$_.ExtensionData.overallStatus}}
The State property is depreciated, and it shows Connected/Disconnected/NotResponding/Maintenance.
See the VMHostState enum.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Try with
Get-VMHost | Select Name,@{N="Alarm State";E={$_.ExtensionData.overallStatus}}
The State property is depreciated, and it shows Connected/Disconnected/NotResponding/Maintenance.
See the VMHostState enum.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thank you Luc.
The script works fine.
Best regards!