/build/static/layout/Breadcrumb_cap_w.png

Skip "Program Still Needs to Close" Dialog when Shutting Down Windows 7?

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

Answers (2)

Posted by: SMal.tmcc 11 years ago
Red Belt
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))


Comments:
  • Yeah, have set that and a whole bunch of other registry entries as directed by the page linked in OP - muebel 11 years ago
  • Added attempted registry changes to question. - muebel 11 years ago
Posted by: SMal.tmcc 11 years ago
Red Belt
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


Comments:
  • 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. - muebel 11 years ago
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ