3

I have been having a nasty problem on my Windows 11 for a few weeks. Where Windows will take over 7 minutes to shutdown. I have an NVMe drive for Windows, and it boots to a fully functional windows in less than a minute or so. But the shutdown is taking a very long time.

I have tried everything I could find. Including multiple suggestions, like:

  • HungAppTimeout to 1000
  • WaitToKillAppTimeout to 2000
  • AutoEndTasks to 1
  • ClearPageFileAtShutdown to 0
  • turning off windows fast boot, including my motherboard fast boot option (MSI)
  • enabling detailed shutdown messaging on Windows. And all it shows for 7 minutes is "shutting down" or "restarting".

I've even gone through this thread as well, How can I identify the culprit of my slow Windows shutdown?, to enable a log and run windows performance analyzer, and I couldn't find the problem. As I can't read the log file properly. I've added a screenshot of the closest I can think of what the problem might be:

Disk usage

Destroy666
  • 12,350

1 Answers1

3

Since you have closed all apps and Windows 11 still takes a long time to shut down, it is time to consider repair options.

(1) Test the hardware: Get the computer manufacturer's Hardware Diagnostic App and look for hardware issues (memory and main disk especially).

(2) Run DISM / SFC which is the simple initial repair:

(i) Open cmd.exe with Run as Administrator.

(ii) DISM.exe /Online /Cleanup-image /StartComponentCleanup

(iii) DISM.exe /Online /Cleanup-Image /Restorehealth

(iv) SFC /SCANNOW

(v) Restart when all the above is complete and test.

(3) If slow shut down remains, run a Windows 11 Repair Install:

Go to the Windows Media Creation Link

https://www.microsoft.com/en-us/software-download/windows11

Windows 11 is running, so click on the Download button (not Upgrade Button) and select Download. Run the downloaded file (double click on it). You will need a USB key as running the download creates a USB Key. Run Setup on the USB Key. This will launch the Repair. Proceed normally answering the prompts. The default Keep prompt is to Keep Everything.

(4) If issues remain and the hardware is OK, then there are more serious operating system errors and / or the Windows User Profile is damaged.

In either case, the most practical way forward is to completely back up and reinstall Windows 11.

I have 2 production Windows 11 Pro machines a 1 Windows 11 Pro insider machine and shut down is not a problem.