VMware Cloud Community
tdubb123
Expert
Expert
Jump to solution

get-vmhost | connection state

I am trying to remove all hosts in vc that have a state of "not responding"

get-vmhost * | where-object {$_.ConnectionState.Notresponding -eq "true"}

but returns nothing

Reply
0 Kudos
1 Solution

Accepted Solutions
aerodevil
Hot Shot
Hot Shot
Jump to solution

Try

get-vmhost | where-object {$_.ConnectionState -eq "NotResponding"}

Josh Atwell @Josh_Atwell http://www.vtesseract.com http://github.com/joshatwell/

View solution in original post

Reply
0 Kudos
2 Replies
aerodevil
Hot Shot
Hot Shot
Jump to solution

Try

get-vmhost | where-object {$_.ConnectionState -eq "NotResponding"}

Josh Atwell @Josh_Atwell http://www.vtesseract.com http://github.com/joshatwell/
Reply
0 Kudos
tdubb123
Expert
Expert
Jump to solution

nice thank you

Reply
0 Kudos