Is there a way to schedule a task to run at logoff but before windows sends the terminate signal to applications?
I need to pass a command to a running VirtualBox VM (host system being Windows8 pro) so the VM will close and save it's current state. Looking in Task Sheduler, i can't find a trigger for logoff (unless there is an journal entry i can link to, but then i didn't found it either). I tried using gpedit.msc but Group Policy scripts appear to run after the termination signal is sent. This causes windows to try and close my VM before the command handles it and brings me back to the desktop because VirtualBox won't auto-save the VM.