When I try to shutdown a Windows 7 machine, if I have a notepad file that is not saved it will prevent the system from shutting down.

Is there a registry change that could be made to force a shut down after some timeout? I found  http://www.sevenforums.com/tutorials/26476-desktop-shutdown-tweaks-combined.html but it doesn't seem to actually work.

Registry Entires I am trying:

Windows Registry Editor Version 5.00
[HKCU\Control Panel\Desktop]
"AutoEndTasks"="1"
"HungAppTimeout"="15000"
"MenuShowDelay"="0"
"WaitToKillAppTimeout"="15000"
"LowLevelHooksTimeout"="15000"

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Control]
"WaitToKillServiceTimeout"="15000"
 
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control]
"WaitToKillServiceTimeout"="15000"
 
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control]
"WaitToKillServiceTimeout"="15000"

[HKEY_USERS\S-1-5-19\Control Panel\Desktop]
"AutoEndTasks"="1"
"HungAppTimeout"="15000"
"MenuShowDelay"="0"
"WaitToKillAppTimeout"="15000"
 
[HKEY_USERS\S-1-5-20\Control Panel\Desktop]
"AutoEndTasks"="1"
"HungAppTimeout"="15000"
"MenuShowDelay"="0"
"WaitToKillAppTimeout"="15000"

Added text to a notepad file and attempted to shutdown, "program trying to close" dialog came up and didn't force shutdown after the 15 second timeout. Restarted the system, tried again, and it again failed to shutdown. There must be something missing.

0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Community Chosen Answer

1

have you tried adjusting the time out?

HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet > Control >WaitToKillServiceTimeout

Type in 1000 (this will set the time to 1000 ms (which = 1s))

Answered 08/30/2012 by: SMal.tmcc
Red Belt

  • Yeah, have set that and a whole bunch of other registry entries as directed by the page linked in OP
  • Added attempted registry changes to question.
Please log in to comment

Answers

0

Is this for you to do updates or do you need this for users?

If it for you, have you tried to create a k1000 script and do a run now on the machines you need.  We created 2 scripts to allow is do force restart of remote machines so we could then push apps to them and we also push a shut down script a midnight to save power.

Shutdown.exe /f /r /t 0

Shutdown.exe /f /s /t 0

Answered 08/31/2012 by: SMal.tmcc
Red Belt

  • I have laptops that need to be shutdown if the user closes the lid. Running programs will prevent the system from shutting down, which kills the battery.
Please log in to comment
Answer this question or Comment on this question for clarity