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

Jerold Schulman

March 7, 2001

1 Min Read
ITPro Today logo in a gray background | ITPro Today


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_UserSoftwareMicrosoftWindowsCurrentVersionExplorer:

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.


Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like