Guest Todd Posted August 21, 2008 Posted August 21, 2008 Hi All, I need help shutting down a virtual machine running under virtual box. I am only including the Linux code as it might be of some help understanding what is going on. (And I know a lot of you are conversant in both, like I am.) If you don't understand the Linux stuff, please keep reading until you hit the XP stuff. Host: CentOS 5.2 Guest: XP-Pro-SP3 From a Crontab command, I am trying to turn off an XP virtual machine. I use this command: kdesu -u todd -c "/usr/bin/VBoxManage controlvm VirtualXP acpipowerbutton" It works, except, I get a prompt on the xp virtual machine stating "other people are logged onto this computer. Shutting down Windows might cause them to loose data. Do you want to continue shutting down Windows? Yes, No" And there are other uses and I don't care. I just want it to shutdown. But, I can not because I am not there at 23:30 at night to click on "Yes". Is there a way to over ride this behavior and just shut down? Many thanks, -T
Guest Bill Blanton Posted August 21, 2008 Posted August 21, 2008 Re: Command Line shutdown with other people logged on Virtual PC? If you have a way to run a script or batch file within the XP/VM, you might try using the cmd line shutdown command. shutdown -s -t nn (where nn is seconds delayed) shutdown /? (for the list of options) I have no idea how you would initiate the script within the VM. "Todd" <MargoAndTodd@gmail.com> wrote in message news:624d60f6-1ae6-4493-8f64-491ce6cd089b@p31g2000prf.googlegroups.com... > Hi All, > > I need help shutting down a virtual machine running under virtual > box. I am only > including the Linux code as it might be of some help understanding > what is > going on. (And I know a lot of you are conversant in both, like I > am.) If you > don't understand the Linux stuff, please keep reading until you hit > the XP stuff. > > Host: CentOS 5.2 > Guest: XP-Pro-SP3 > > From a Crontab command, I am trying to turn off an XP virtual > machine. I use this command: > > kdesu -u todd -c "/usr/bin/VBoxManage controlvm VirtualXP > acpipowerbutton" > > It works, except, I get a prompt on the xp virtual machine stating > "other people are > logged onto this computer. Shutting down Windows might cause them to > loose data. > Do you want to continue shutting down Windows? Yes, No" And there > are > other uses and I don't care. I just want it to shutdown. But, I can > not because > I am not there at 23:30 at night to click on "Yes". > > Is there a way to over ride this behavior and just shut down? > > Many thanks, > -T
Guest Todd Posted August 21, 2008 Posted August 21, 2008 Re: Command Line shutdown with other people logged on On Aug 20, 6:21 pm, "Bill Blanton" <bblan...@REMOVEmagicnet.net> wrote: > Virtual PC? > > If you have a way to run a script or batch file within the XP/VM, > you might try using the cmd line shutdown command. > > shutdown -s -t nn (where nn is seconds delayed) > > shutdown /? (for the list of options) > > I have no idea how you would initiate the script within the VM. > > "Todd" <MargoAndT...@gmail.com> wrote in messagenews:624d60f6-1ae6-4493-8f64-491ce6cd089b@p31g2000prf.googlegroups.com... > > Hi All, > > > I need help shutting down a virtual machine running under virtual > > box. I am only > > including the Linux code as it might be of some help understanding > > what is > > going on. (And I know a lot of you are conversant in both, like I > > am.) If you > > don't understand the Linux stuff, please keep reading until you hit > > the XP stuff. > > > Host: CentOS 5.2 > > Guest: XP-Pro-SP3 > > > From a Crontab command, I am trying to turn off an XP virtual > > machine. I use this command: > > > kdesu -u todd -c "/usr/bin/VBoxManage controlvm VirtualXP > > acpipowerbutton" > > > It works, except, I get a prompt on the xp virtual machine stating > > "other people are > > logged onto this computer. Shutting down Windows might cause them to > > loose data. > > Do you want to continue shutting down Windows? Yes, No" And there > > are > > other uses and I don't care. I just want it to shutdown. But, I can > > not because > > I am not there at 23:30 at night to click on "Yes". > > > Is there a way to over ride this behavior and just shut down? > > > Many thanks, > > -T All I need is a registry setting in XP to over ride the warning about other users being logged on and just shut down
Guest Bill Blanton Posted August 21, 2008 Posted August 21, 2008 Re: Command Line shutdown with other people logged on >"Todd" <MargoAndTodd@gmail.com> wrote in message news:cf59ec01-0885-416e-aa15-950543ae4b17@s1g2000pra.googlegroups.com... >>On Aug 20, 6:21 pm, "Bill Blanton" <bblan...@REMOVEmagicnet.net> wrote: >> If you have a way to run a script or batch file within the XP/VM, >> you might try using the cmd line shutdown command. >> >> shutdown -s -t nn (where nn is seconds delayed) >> "Todd" <MargoAndT...@gmail.com> wrote in messagenews:624d60f6-1ae6-4493-8f64-491ce6cd089b@p31g2000prf.googlegroups.com... >All I need is a registry setting in XP to over ride the warning about >other users >being logged on and just shut down Sorry, I'm not aware of any such setting. Perhaps someone else knows.
Recommended Posts