Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I use shutdown -r or shutdown /r my Windows computer doesn't restart. I think this command is disabled. How can I enable this command in the command prompt?

share|improve this question

migrated from Jun 23 '10 at 17:35

This question came from our site for professional and enthusiast programmers.

Neither are valid: try 'shutdown /r' or 'shutdown /t 10' – stuartd Jun 22 '10 at 15:46
sorry that is a type wrong . (edit the post) sry a lot – Eva Jun 22 '10 at 15:50
Windows XP, Vista or 7 and which flavor (32-bit, 64-bit, Ultimate, etc)? – glenneroo Jan 28 '11 at 17:22

Run regedit (Start -> Run) and check these registry keys if NoClose is set:

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

0 indicates shutdown is enabled.
1 indicates shutdown is disabled.

If the value is not there, you could try adding it and setting it to 0. You'll probably need to restart as well.

share|improve this answer

I prefer SysInternals PSSHUTDOWN, has lots of options.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.