New
#1
How to bypass "These apps are preventing shutdown"
Hey guys
Anyone know how to get rid if the above message when shutting down, ideally via gpo....(or as a last resort reg) ?
Cheers.
Hey guys
Anyone know how to get rid if the above message when shutting down, ideally via gpo....(or as a last resort reg) ?
Cheers.
The problem with making this a permanent change is there may be times when you don't want it to happen, like when you forgot you have a specific program running minimized and killing it would cause loss of data.
This happens to me primarilly when I'm running a Oracle VB VM and have it minimized and forget about it.
Run CMD as admin and copy/paste:
1000 = 1 second.Code:reg add "HKCU\Control Panel\Desktop" /v "AutoEndTasks" /t REG_SZ /d "1" /f reg add "HKCU\Control Panel\Desktop" /v "HungAppTimeout" /t REG_SZ /d "5000" /f reg add "HKCU\Control Panel\Desktop" /v "WaitToKillAppTimeout" /t REG_SZ /d "5000" /f reg add "HKLM\System\CurrentControlSet\Control" /v "WaitToKillServiceTimeout" /t REG_SZ /d "5000" /f
Forced shutdown = crashing apps instead of closing them down. Min safe value would be probably 20-30 secs. I use ramdisk, so autoend would shut it down before saving the content.
I am glad I looked at this thread because I had the same issue. It is extremely rare that I close windows with applications open so losing data is very rarely a problem, but it refusing to shut down is a constant problem.
I currently just have a link on the desktop that has the following...
Target ~ C:\Windows\System32\shutdown.exe -s -f -t 00
I use a big red off button as the icon!!
This just shuts windows down instantly ignoring any problems. It will however allow any updates to be installed. I have used this for years and it works extremely well.
The great thing about it is that it doesn't affect windows when IT decides it needs to shut down or reset for some reason. Also having a big red button on the desktop to shut the PC down is actually very handy. I started with the big red button on just one PC but now I have it on all of my PC's!!
I have similar, only my PCShutdown shortcut on the desktop call PCShutdown.cmd which does the following:
shutdown /s /t 15 /c "Shutdown in 15 seconds. Enter shutdown /a from the Run box to cancel."
/t implies /f
This puts up a message and gives me 15 seconds to change my mind and enter shutdown /a from a Run box to cancel the shutdown. 10 seconds would be enough but 15 works well for me.
Thank you guys, I already had the waittokill hklm and autoend tasks but will try the other keys as well.