Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

2 Answers 2

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 technet.microsoft.com/en-us/library/cc740219(v=ws.10).aspx –  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:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.