Skip navigation

JSI Tip 3454. How did I terminate my last Windows 2000 session?

When you use the Shut Down Windows dialog box, Windows 2000 stores the termination code for your last session in the Shutdown Setting value name, a REG_DWORD data type, at HKEY_Current_User\Software\Microsoft\Windows\CurrentVersion\Explorer:

Value  D e s c r i p t i o n
0x1    Log off.
0x2    Shut down. 
0x4    Restart.  
0x10   Stand by. Maintains the session, keeping the computer running on low power with data still in memory.
0x20   Stand by, with wakeup events disabled.
0x40   Hibernate.
0x80   Disconnect (available only in Terminal Server sessions).
NOTE: If you change the value in the registry, the Shut Down Windows dialog box will default to that setting, the next time you invoke it. If you enter a data value that is unsupported on your computer, Shut down ( 0x2) becomes the default. If you simply pull the plug, or run Shutdown.exe, the last termination code is NOT updated.

Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.