Page 1 of 1

Logoff script

Posted: 14. Oct 2009, 01:52
by jcfranco
Hi, everybody!

Is there any way to run a logoff script on a VM (windows xp) to turn off the host machine (windows xp)?

As soon as the VM is turned off, the logoff script starts a shutdown on the host machine.

Thanks.

Re: Logoff script

Posted: 15. Oct 2009, 15:00
by jcfranco
None?

Re: Logoff script

Posted: 17. Oct 2009, 05:35
by MarkCranness
Write your own program that starts a VirtualBox VM, waits for it to end and then shuts down?

I think on Windows VB uses COM, so you could perhaps even use a scripting language (VBS) to write the program.

Chapter 10 of the user manual has a two paragraph summary of the SDK: "It is completely documented and available to anyone who wishes to control VirtualBox programmatically."