up vote 1 down vote favorite
1
share [g+] share [fb]

Where does Windows 2000 store whether the last shutdown was a restart or shutdown (switch off)?

Windows 2000 Shutdown Dialog

Is this in the registry or somewhere else?

link|improve this question

71% accept rate
feedback

1 Answer

up vote 1 down vote accepted

After a bit of registry searching I came across the key that stores this info:

HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer 
  • 0x2 = Shut down
    Ends the session and shuts down Windows 2000 so that the power can be turned off safely.

  • 0x4 = Restart
    Ends the session, shuts down Windows 2000, and starts Windows 2000 again.

This is documented fully on the Microsoft TechNet - Explorer Shutdown page.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.