Knowledgebase

Reload inaccessible or invalid VM's with PowerCLI

Especially with NFS Storages we have identified that from time to time VMs are shown as invalid or inaccessible.

Based on this blog post we created a small powerCLI code snipped to reconnect/reload these VMs.

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

Kommentieren

Go back