How to prevent shutdown of a Windows XP computer

Posted on September 13, 2008 at 5:39 am

If you’re looking for a way to prevent people from shutting down or logging off your Windows XP machine, you’ve come to the right place. Whatever your reason may be, it’s pretty easy to remove all options for shutting down or logging off a computer.

In Windows XP, there are several ways to shut down a computer: click on Start and Shut Down or Turn Off, press CTRL + ALT + DEL and choose Shutdown, open the command prompt and type in the shutdown command, or install a third party application that shuts down your computer for you.

Let’s try to go through each method and see how we can block them. First, you can remove the Shut Down button from the Start Menu and from the CTRL + ALT + DEL screen by using the Group Policy Editor.

Click on Start and then Run and type in gpedit.msc and press Enter.

gpedit msc

In the left pane, expand User Configuration and then expand Administrative Templates. Finally, click on Start Menu and Taskbar.

start menu task bar

Now on the right pane, double-click on Remove and prevent access to Shut Down command and set it to Enabled. You’ll notice in the description that this will remove the shutdown option from the Start Menu and security dialog box. However, the system can still be shutdown via the command prompt also.

remove shutdown command

Also, find Remove Logoff on start menu and set it to Enabled also. If a user is able to log off, they can shutdown the computer on the main log into Windows screen. You can also configure Group Policy to only allow shutdown of the computer when someone is logged on.

Go to Computer Configuration – Windows Settings – Security Settings – Local Policies – Security Options and scroll down to Shutdown: Allow the system to be shutdown without having to log on and set it to Disabled.

prevent shutdown

Finally, you need to prevent people from going to the command prompt and simply typing in shutdown! To do this, go to the following policy:

User Configuration – Administrative Templates – System and double-click on the Prevent access to the command prompt policy and set it to Enabled.

prevent access to command prompt

Note that everything in the User Configuration section will apply to all users except the Administrator, so you can restart the computer and log in as Administrator to change back any of these settings if you like.

Also, if you make the account a non-administrative account, then users will not be able to install any software that could be used to shut down the computer. So create a new user account and make sure it is not in the Administrators or Power Users group and the apply these Group Policy settings. This will also ensure that someone cannot use the remote shutdown command in Windows to shut down the computer. 

There are lots of other cool things you can do in Group Policy, such as disabling the restart now message after a Windows Automatic Update or adding Google and Wikipedia to the Vista Instant Search menu.

» Filed Under Windows XP

Related Posts

Comments

9 Responses to “How to prevent shutdown of a Windows XP computer”

  1. Nakodari said on :

    Hello Akishore,

    I would love to guest post on your blog. You can check the posts on my blog, to see which kind of posts are published there.

    Cheers, Nakodari


  2. Jacques Myre said on :

    very useful, but what I would like better is a way to prevent shutdown but allow a reboot. Users tend to shut down their computers, but I need them on in order to remotely install updates, software or reconfigure, but also need the PC’s rebooted to “clean” out the memory at times.

    I like the no shutdown option, but would like to still have the reboot option, is there a way to do that? Presently, PC’s are rebooted via group policies once a week.

    Thanks for the help


  3. Ken Coggin said on :

    I too am looking for a way to prevent shutdown, but allow reboot! I need this for virtual machines where users won’t be able to get to the hosts.

    For Jacques problem, can you set an Auto-Power On time at the BIOS level, and patch in the morning before users start work?


  4. Puig said on :

    Hello.
    Explanation very clear and interesting for everybody. But I have 1 problem at my level. In the morning when I turn on my pc, it switches off after 10 minutes. Must restart and then good for all day. The next day same scenario…Turns off after 10 minutes and then restart, but the problem does not go away.

    Just to say that it is as if the PC was programmed to die after 10 mins…I have no virus or spyware, checked everything but the problem remains. Also, it is worth noting that the problem has not arisen in 3 days now. And as I am beginner, I cannot understand the phenomenon.

    Thank you


  5. Erika said on :

    I have tried this, but I get an access denied message, how can I fix this?


  6. Volcker said on :

    Excellent post! This information is really useful for our small business. We have to prevent our users from shutting down their computers so that we can apply updates during the night. This solved our problem. Thanks.


  7. Lark Ohiya said on :

    I would think there are better options to updating computers then to have them continuously on. Find a utility that will wake on lan your computers and shutdown after updates are complete for better control and more energy savings. Not to mention longer lifespan on hardware.

    Regardless thanks for the info.


  8. Mic said on :

    Thanks for the post. It saved the day today.

    Note that it doesn’t work on Guest account. ( Guest account cannot configure group policy. Has to be done with an admin level account, after that, re-logging with Guest account, the shutdown button still appeared in the “Start” menu.)

    Create a new acc with admin level, do the setting, then lower the privilige of the acc to limited. Done.

    Michael


  9. Mike said on :

    I have WinXP Pro SP3 and I don’t have the sub-folders you speak of in Group Policy. I only have the “Windows Components” folder under “User Configurations >> Administrative Templates”. How can I add what I am missing? Why am I missing that information?


Please post your comments/suggestions!