Ever since setting up my new desktop, I’ve had extremely long shutdown times with Windows 7, usually taking several minutes to turn off. Initially, I thought this was due to a buggered install, but after a reformat did nothing to solve the issue, I dug deeper into the internet.
I first checked my Startup/Shutdown logs to see if any processes were hanging. You can access the logs by:
- Searching for “Performance Information and Tools” in the Windows 7 start menu search
- Click “Advanced Tools” on the left
- Select “View performance details in Event log“
- The Event Viewer will now pop up.
- Drill down into “Application and Services Logs“
- Go down further into Microsoft > Windows > Diagnostics-Performance
- Under “Operational“, any events with IDs of 201 and higher will indicate shutdown issues. Check them.
I didn’t find any processes that were slowing the shutdown, so I looked harder.
Turns out Windows was getting stuck on clearing the page file on shutdown. Since I have an SSD, had disabled the page file altogether as one of the standard SSD OS tweaks. Was Windows getting confused about not being able to find the page file to clear? I’m not quite certain what the explanation is.
If you’re having long or delayed shut downs, try disabling page file clearing at shutdown by setting the following registry (regedit.exe) DWORD to zero (0).
HKLMSYSTEMCurrentControlSetControlSession ManagerMemory Management
Hopefully that helps anyone with shutdown performance issues. If any SSD users find the registry edit solved the problem, let me know if you have a page file enabled or not in the comments. Perhaps I can collect some data and forward it on to some contacts at Microsoft.