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
Try
get-vmhost | where-object {$_.ConnectionState -eq "NotResponding"}
Try
get-vmhost | where-object {$_.ConnectionState -eq "NotResponding"}
nice thank you