Delay before shutdown on Windows 10
I'm using Windows 10 Pro 32-bit on a 7-year-old Dell desktop PC. In the past couple of months (ever since my PC was updated to Creators Update, by this may be a coincidence), when I use the UI to shut down my PC, I have to wait about 2 minutes and 30 seconds before it actually starts to shut down.
During that time, I can use the PC normally; there are no processes shown in Task Manager using up any considerable CPU time. After 2m30s, the PC then starts to shut down without any further warning.
This happens irrespective of whether or not I'm connected to the Internet. It only happens when I use the UI (i.e. either: click Start -> Power -> Shut Down, or: WinKey+X -> "Shut down or sign out" -> Shut down). If I give the command shutdown /s /t 0 in the Command Prompt, it shuts down immediately.
Any ideas how I can find out the reason for this delay?
62 Answers
Depending on how much RAM you have, your PC may be trying to clear out your pagefile before shutdown.
You can most likely tweak two registry entries to get rid of this problem:
Under \HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management, change the value of "ClearPageFile at Shutdown" to 1 if it is currently 0.
Fair warning, the second registry tweak is often warded against by forum lurkers and bloggers alike. Here goes:
Under HKLM\System\CurrentControlSet\Control\, change the value of "WaitToKillServiceTimeout" from whatever it is to 1000. BEFORE changing this value, record the old value on a piece of paper.
If these tweaks don't work, set them back to their original values.
Do Win+R to open Run..
Type eventvwr and hit Enter / Return.
Go to Applications And Services Logs\Microsoft\Windows\Diagnostics-Performance\Operational and click Filter Current Log.
Where it says <All Event IDs>, type 200-299, Click OK.
Scroll through the list of events using the ↑ and ↓ keys, looking at "Total Time" and "Degradation Time" for each event.
Hopefully you'll be able to find the culprit that way.
Good luck!
3I've found the culprit, and it's a weird one. I'm answering my own question in case someone has the same problem in future.
I had an empty microSD-to-SD card adapter inserted into my built-in card reader. Once I took out the adapter, the PC started shutting down without the delay. It also behaved properly when I had the adapter inserted but with a microSD card in the adapter. It was only when the adapter was inserted without a microSD card in it that it took minutes to commence the shutdown. It seems Windows was trying to access the drive, thinking there was something in it, but there wasn't so eventually it timed out and proceeded with the shutdown.