Hi,
In VC we have VM's with "Status" as "Unknown" (Not "State" field)
Want to list "Status" "Unknown" VM's via Power CLI - Example view of VC is below..
Regards - Purna
Try this
Get-VM | Select Name,@{N="Status";E={$_.ExtensionData.OverallStatus}}
Note that you will see green, yellow, red or gray. In the vCenter client this is translated to normal...
The unknown should appear as gray
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Try this
Get-VM | Select Name,@{N="Status";E={$_.ExtensionData.OverallStatus}}
Note that you will see green, yellow, red or gray. In the vCenter client this is translated to normal...
The unknown should appear as gray
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Perfect.. It served me..