How can I disable Windows XP shutdown while still allowing log out/restart?

2

2

I want to disable the "shut down" option on a Windows XP machine whose case and power button is not easily accessible. Users must still be able to restart and logout, but not shut down.

Is this possible?

Edited to add: I prefer any solution not using gpedit.exe, otherwise we would need to create a separate policy for this single machine.

Daniel Beck

Posted 2010-08-08T14:03:28.697

Reputation: 98 421

2It's not that hard to create per-machine policies. You can keep them in a separate folder named something like "Individual fixes". You can also edit the policy for a machine at the machine itself, as long it's not enforced to a particular state by the domain. – Joel Coehoorn – 2010-08-08T14:17:57.067

Now there did this downvote come from? Please leave a comment explaining what's wrong with this topic -- thanks! – Daniel Beck – 2011-02-15T20:38:29.213

that was to leave you with exactly 9,000 points, so you should be grateful for such awesomeness for this great base 10 rounded number! :D – cregox – 2011-02-17T02:22:00.637

@Cawas Now I am OVER 9000! Success! (my apologies to the two users getting notified about this) – Daniel Beck – 2011-02-17T13:58:43.717

Answers

4

As an alternative to gpedit you can edit manually the reg-key which would be modified by gpedit:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer

create a new DWORD value named NoClose and set its value = 1

Reboot the pc and the 'shutdown' button should be disappeared.

NOTE: shutdown command from prompt will work

Cagliostro

Posted 2010-08-08T14:03:28.697

Reputation: 1 620

1To disable it for all users also edit this reg key HKEY_LOCAL_Machine\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer.

Shutdown from task manager will also work after these edits. – Moab – 2010-08-08T21:49:31.997

Worked like a charm. This is effectively the same setting as the better-known gpedit solution, so it might not work with more restrictive policies in effect. – Daniel Beck – 2010-08-14T09:34:38.363

In my case this tip will remove also the restart button. How is that? – Riccardo – 2013-10-23T14:23:48.547