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.
Answers (2)
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))
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 12 years ago