Recently my Win10 laptop has started to not shutdown. I usually just let it sleep, so I don’t know for certain when it started. (I’m at 21H2 and just allowed the October update, though the problem was discovered before that.) Restart and shutdown seem to spin forever. Eventually, shutdown may end up in sleep mode instead. I’ve had some success with running shutdown /s /f /t 0, but not today. (Fast startup is not on.) I’ve run dism & sfc and all is well. A full scan with Windows Defender is clean.
Possibly related symptoms: File explorer does not update on it’s own (for example, I’ll delete a file and it is still listed until I refresh with F5.) Also, the fan is running full speed all of the time (Core Temp lists the temps between 81 and 95 C — I don’t think that’s terribly hot, but not sure any more.)
Last detail: it’s an old machine that shipped with Win7. It’s due to be replaced, but Win10 has been running on it quite well for many years.