Windows shutdown hanging for long periods

This may be totally unrelated, but for what it's worth, I once had extremely long shutdown times on windows 7. It turned out to be related to Microsoft.Net Framework updates. One I updated to the latest available one, the computer shutdown normally. A long shot perhaps, but who knows?
 

My Computer My Computer

At a glance

Windows 7 x64 SP1AMD Athlon 64 X2 6000+ / 3.0 GHz6 GB
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Gateway GT5656
OS
Windows 7 x64 SP1
CPU
AMD Athlon 64 X2 6000+ / 3.0 GHz
Motherboard
NVIDIA GeForce 6150 SE
Memory
6 GB
Monitor(s) Displays
Lenovo LED
Screen Resolution
1920 X 1080
Hard Drives
Windows on 500 GB spinner; Ubuntu 16 on Sandisk 250GB SSD; Bodhi5 on Samsung 250GB SSD; another old spinner for fooling around.
PSU
Original that came with computer
Keyboard
Logitech wireless
Mouse
Logitech wireless
Antivirus
Microsoft Sec Essentials
Browser
Vivaldi
Michael,
The most recent .net framework installed was 4.8 v1, KB4532941, on 17 Jan 2020. There are 4 prior "versions" of this, installed dating back to 16 Aug 2019.


All,
I originally reported that the blue screen hangup on shutdown was variable, from normal to horribly long, and was shorter when the screen was connected by VGA, than when connected by HDMI.


Since on your advice I've tweaked the windows update check, and updated the Intel HD4400 graphics driver, the blue screen hangup for VGA seemed to be stable, mostly short but with long periods still there, I took the plunge and re-connected with HDMI. I reported the pleasing results of that. Since then (the last 4 days) I've noticed a pattern in the hangups, and there definitely seems to be a calendar date related frequency to them. The measuring period covered 2 weekdays and 2 weekend days. Specifically,
- the first shut down of a new day takes a long time: timed at over 3 minutes on 3 occasions, and just on 2 minutes on the 4th.
- for the remainder of each day (3 or 4 each day, spaced thru the day - morning, afternoon and evening), with 1 exception, shut-downs took 20-30 sec. The one exception was the last shut down last night (Saturday) when the last shut down of the day took 3 mins 15 sec.


Waiting on FM's reply to confirm I have the right for updating the registry re AutoEndTasks.
 

My Computer My Computer

At a glance

windows 7 home premium 64bitIntel core i3-47008gb
Computer type
PC/Desktop
Computer Manufacturer/Model Number
custom build
OS
windows 7 home premium 64bit
CPU
Intel core i3-4700
Motherboard
Gigabyte GA-H97M-d3H
Memory
8gb
Hard Drives
1x256gb SSD
3x500gb HDD
Update
I haven't heard further from F22, but on reviewing the link he provided (printed it out and read carefully - probable reaction to years of 'tread v carefully when doing anything in the registry' advice in forums like this - I took the plunge and applied Turn_On_AutoEndTasks_for_all_users.reg from that link.


So far, so good. One shut down and restart since doing that (but not the 1st of the day) and the blue screen time was 25sec.


At the end of the document about AutoEndTasks, there is a link to another one which discusses how to change the HungAppTimeout. Would that also be applicable in windows 7 and to this situation???
 

My Computer My Computer

At a glance

windows 7 home premium 64bitIntel core i3-47008gb
Computer type
PC/Desktop
Computer Manufacturer/Model Number
custom build
OS
windows 7 home premium 64bit
CPU
Intel core i3-4700
Motherboard
Gigabyte GA-H97M-d3H
Memory
8gb
Hard Drives
1x256gb SSD
3x500gb HDD
Back
Top