invoke-vmshutdown - automatically confirm "Y"

Sep 22, 2010 at 3:03 AM

Apologies if this has been discussed elsewhere. I have looked.

I am writing an unattended scripts which needs to do various task including shutting the VM down.  However, I always get the pesky "confirm".  I need a method to automatically confirm as this will be scheduled for the middle of the night.  How can I bypass the confirmation.



Sep 22, 2010 at 3:08 AM

After re-reading the manual I re-interpreted my assumption of the command "force"  which i assumed would 'force' the OS to shutdown.  So have figured it out.