Script-Bash Script to shutdown VMs on an ESXi node That's working on the version ESXi 7.0 , other version was not tested. If you wanna to launch that script, remember to give permissions as well with "sudo chmod +x 'shutdown.sh'" on your linux system.