The latest Windows 11 preview build includes a fix for the infamous "update and shutdown" bug where your PC wouldn't actually shut down after installing an update.
Open the Windows Run by pushing the Windows + R buttons. Now type the following command in: msdt.exe -id DeviceDiagnostic.
Fix Windows 7 not updating with this quick guide. Learn how to restart services, clear the cache, and install updates ...