Where does Windows remember the "Restart" task (instead of "shutdown")?

  • Thread starter Thread starter Peter Eisenman
  • Start date Start date
P

Peter Eisenman

When I exit Windows 2000/XP I can select between "Shutdown" and "Restart".
The default action ist "Shutdown". However when I select "Restart" then Windows
must write something somewhere to inform the computer to do a restart instead of turning off.

Where is this "Do Restart" information written ?

Peter
 
I don't believe it writes any information, it just instructs the Windows
shell to restart. The shutdown dialog is just a friendly interface for the
shutdown command in the shell, whereas:

Shutdown [{-l|-s|-r|-a}] [-f] [-m [\\ComputerName]] [-t xx] [-c "message"]
[-d[p]:xx:yy]

Parameters

* -l - Logs off the current user, this is also the defualt. -m
ComputerName takes precedence.
* -s - Shuts down the local computer.
* -r - Reboots after shutdown.
* -a - Aborts shutdown. Ignores other parameters, except -l and
ComputerName. You can only use -a during the time-out period.
* -f - Forces running applications to close.
* -m [\\ComputerName] - Specifies the computer that you want to shut down.
* -t xx - Sets the timer for system shutdown in xx seconds. The default
is 20 seconds.
* -c "message" - Specifies a message to be displayed in the Message area
of the System Shutdown window. You can use a maximum of 127 characters. You
must enclose the message in quotation marks.
 
It tells the BIOS to reboot instead of turning off. So wouldn't need to store anything.

--
--------------------------------------------------------------------------------------------------
How to lose a war in Iraq
http://webdiary.com.au/cms/?q=node/1335#comment-48641
=================================================
Shawn Keene said:
I don't believe it writes any information, it just instructs the Windows
shell to restart. The shutdown dialog is just a friendly interface for the
shutdown command in the shell, whereas:

Shutdown [{-l|-s|-r|-a}] [-f] [-m [\\ComputerName]] [-t xx] [-c "message"]
[-d[p]:xx:yy]

Parameters

* -l - Logs off the current user, this is also the defualt. -m
ComputerName takes precedence.
* -s - Shuts down the local computer.
* -r - Reboots after shutdown.
* -a - Aborts shutdown. Ignores other parameters, except -l and
ComputerName. You can only use -a during the time-out period.
* -f - Forces running applications to close.
* -m [\\ComputerName] - Specifies the computer that you want to shut down.
* -t xx - Sets the timer for system shutdown in xx seconds. The default
is 20 seconds.
* -c "message" - Specifies a message to be displayed in the Message area
of the System Shutdown window. You can use a maximum of 127 characters. You
must enclose the message in quotation marks.





Peter Eisenman said:
When I exit Windows 2000/XP I can select between "Shutdown" and "Restart".
The default action ist "Shutdown". However when I select "Restart" then Windows
must write something somewhere to inform the computer to do a restart instead of turning off.

Where is this "Do Restart" information written ?

Peter
 
Peter said:
When I exit Windows 2000/XP I can select between "Shutdown" and "Restart".
The default action ist "Shutdown". However when I select "Restart" then Windows
must write something somewhere to inform the computer to do a restart instead of turning off.

Where is this "Do Restart" information written ?

It is written, even if perhaps not used for the current action, so that
whatever you choose this time, that will be the default action next time.

#######################################################################

[HKey_Current_User\Software\Microsoft\Windows\CurrentVersion\Explorer]
"Shutdown Setting"=dword:00000002
; 0x00000001 (01) = Log off <User>
; 0x00000002 (02) = Shut Down
; 0x00000004 (04) = Restart
; 0x00000008 (08) = ?
; 0x00000010 (16) = Stand by (if the computer supports it (ACPI?))
; 0x00000020 (32) = ?
; 0x00000040 (64) = Hibernate (if the computer supports it & ;
support is enabled in 'Power Options' (to
; 'HiberFil.sys')) \
; (If disabling Hibernation support when
; this value is pre-selected, will show
; 'Log off <User>' in the 'Shut Down Windows'
; dialog box.)
; 0x000000?? (??) = Disconnect (from a Server running 'Terminal
; Services')
; To display the 'Shut Down Windows' dialog box, click 'Start'
; and then click 'Shut Down...'.

#######################################################################

--
"... all the loathsome nonsense that goes by the name of patriotism
- how passionately I hate them!"

Please followup in the newsgroup.
E-mail address is invalid due to spam-control.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top