VMware Cloud Community
haiiampc
Enthusiast
Enthusiast
Jump to solution

Want to list Status "Unknown" VM's via Power CLI

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..

2112412.png

Regards - Purna

If it helps --> Please award points - as appropriate - "Correct" or "Helpful"
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

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

View solution in original post

0 Kudos
2 Replies
LucD
Leadership
Leadership
Jump to solution

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

0 Kudos
haiiampc
Enthusiast
Enthusiast
Jump to solution

Perfect.. It served me..

If it helps --> Please award points - as appropriate - "Correct" or "Helpful"
0 Kudos