views:

4341

answers:

7

I have a Windows XP SP2 virtual machine which can be accessed via VNC. It's also running Deep Freeze so there should be no problem in forcing it to reboot. I am looking for a way to force the operating system to reboot instead of shutting down or completely remove the ability to shut down the machine using software applications (such as the usual way from the start menu, the shutdown program or other custom programs).

Thank you, Tom

+1  A: 

Try this:

shutdown -r -t 1 -f

Alex

Alex Fort
A: 

In XP there is a DOS command called shutdown. If you type shutdown /? from a command prompt you will see the options available. Using this you can create a Batch file.

Toby Mills
A: 

Try DShutdown.exe. It's flexible and can do all these things.

Burkhard
A: 

I want to remove the ability to shutdown the system.

Tom, this would be more useful as an edit to your question rather than an answer (which people might not see).
Chris Shouts
+1  A: 

To remove the ability to shut down then your best bet is to create a group policy for the user/user group and specify that they can only restart the system. I have done this in the past to ensure that only the administrator account can shut down a computer. it has prevented me from mistakenly shutting down a remote pc at 2am in the morning when i meant to re-start it.

Toby Mills
+1  A: 

Ah, I misunderstood the question. This may be able to help you: http://support.microsoft.com/?kbid=313924

Alex Fort
A: 

Sounds like something the VM host system could enforce. Which VM is this?

Adam Mitz