Sep 05 2016

Reload VM with inaccessible and invalid status

Due to ESXi Host and storage connection issues my few VMs crashed and restarted, while few VMs status changed to invalid

With below Simple PowerCLI one-liner, you can find all VMs with invalid or inaccessible state and reload it.

Then you can power on all required VMs.

>Get-View -ViewType VirtualMachine |?{$_.Runtime.ConnectionState -eq “invalid”  –or $_.Runtime.ConnectionState -eq “inaccessible”} |%{$_.reload()}

Leave a Reply

Your email address will not be published. Required fields are marked *