I have a Perl script I use to reboot provisioned desktops.
Unfortunately it only works half the time, and I can't figure out why. One day it'll go through all the machines, the next day it crashes. The best reproduction of the bug I've been able to create shows me it crashes when it finds a machine where VMTools isn't running, but this only confuses me since I thought PowerOffVM forced a shut down the host not the guest.
I'm considering switching to the asychronus functions so the script will just coninue on if it hits one it can't handle, but I'd like to be able to solve the problem if possible. Any help is appreciated. Thanks in advance.