Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm experiencing long shutdown times in Windows 7 Professional on newly built machines. After joining to a domain, they take over ten minutes to shut down. There is almost no software installed besides VNC and Office 2010. I ran a shutdown trace with Windows Performance Recorder and generated a graph of what's running during these long shutdowns. Most of the shutdown processes occur within the first minute or so and then wininit.exe (blue) and System (orange).

Shutdown analysis

So how do I go about reducing shutdown times in this scenario?

share|improve this question
disconnect one from the network then shut it down. does it still take a long time? – Keltari Jan 23 '13 at 16:36
I don't have another performance report, but yes. – Bryan Jan 23 '13 at 16:45
up vote 3 down vote accepted

look at the summary of the disk graph. I can see you have a lot of disk IO.

Maybe you clear the pagefile at shutdown.

To check it, open regedit, go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management, locate the value ClearPageFileAtShutdown and make sure the value is set to 0.

This can cause such a slowdowns.

share|improve this answer
This was it. It must be defined in group policy or something. Thanks! – Bryan Jan 23 '13 at 19:58
[Brilliant answer] Shutdown: Clear virtual memory pagefile. See more here – Guy Thomas Jan 24 '13 at 22:09

By default on shutdown, Windows waits 12 seconds per each active application to close before forcing it. You can try tweaking the wait time to see if you speed up the shutdown process. You need to open regedit and go to this location:


Then right click on WaitToKillServiceTimeout and click on Modify, then add the desired value in milliseconds. Any value between 1-20 seconds (1000-20000) works without problems.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .