Logoff script

Discussions related to using VirtualBox on Windows hosts.
Post Reply
jcfranco
Posts: 8
Joined: 13. Oct 2009, 22:18
Primary OS: MS Windows XP
VBox Version: OSE self-compiled
Guest OSses: MS Windows XP

Logoff script

Post 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.
jcfranco
Posts: 8
Joined: 13. Oct 2009, 22:18
Primary OS: MS Windows XP
VBox Version: OSE self-compiled
Guest OSses: MS Windows XP

Re: Logoff script

Post by jcfranco »

None?
MarkCranness
Volunteer
Posts: 875
Joined: 10. Oct 2009, 06:27
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows Server 2008 R2; Ubuntu 11.04; Windows 2000 Server; Windows XP

Re: Logoff script

Post 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."
Post Reply