<p>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).</p>

<p>Thank you,
Tom</p>

[{'answer_id': 74143, 'author': 'Alex Fort', 'author_id': 12624, 'author_profile': 'https://Stackoverflow.com/users/12624', 'pm_score': 3, 'selected': False, 'text': '<p>Try this:</p>\n\n<p><code>shutdown /r /t 1 /f</code></p>\n\n<p>Alex</p>\n'}, {'answer_id': 74156, 'author': 'Toby Mills', 'author_id': 12377, 'author_profile': 'https://Stackoverflow.com/users/12377', 'pm_score': 1, 'selected': False, 'text': '<p>In XP there is a DOS command called shutdown. If you type <code>shutdown /?</code> from a command prompt you will see the options available. Using this you can create a Batch file.</p>\n'}, {'answer_id': 74158, 'author': 'Burkhard', 'author_id': 12860, 'author_profile': 'https://Stackoverflow.com/users/12860', 'pm_score': 0, 'selected': False, 'text': "<p>Try DShutdown.exe. It's flexible and can do all these things.</p>\n"}, {'answer_id': 74200, 'author': 'Toby Mills', 'author_id': 12377, 'author_profile': 'https://Stackoverflow.com/users/12377', 'pm_score': 3, 'selected': True, 'text': '<p>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.</p>\n'}]
['https://Stackoverflow.com/questions/74126', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/-1/']