Elon's Blog

Stuff that may be of use to someone…

Improve Windows 7 Shutdown time

Posted by Elon B. on April 25, 2011

Recently my Laptop was taking almost 4 mins to shutdown, which was excessive plus annoying.

I carried out the following steps, which improved my shutdown time to mere seconds. Note the solution involves editing registry entries, which you do at your own risk, so take a backup beforehand.

1: To determine where the issue lay, go to your Control Panel and select Performance Information and Tools.  From the pane on the left select “Advanced Tools”.

2: From the options that appear select View performance details in Event Log.

3: Look for Error and Warnings related to the “Shutdown Performance Monitoring” task for more information.

Event Viewer Shutdown Performance

Event Viewer Shutdown Performance

In my case, as you can see from the image, my total shutdown time was 79935ms or 79.935 seconds. Other entries showed over twice this long.

The main point though, is that in this case 69.532 seconds, or 87% of the shutdown time was related to the “ShutdownKernelTime”.

4: To resolve this I updated the following registry entries.

(Note:  Update the registry at your own risk. You may want to back it up prior to editing it. Run regedit.exe, select FILE, then Export… and then name and save the file to your desired location. Ensure the “Export range” Option is set to All.)

Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control  and change the “WaitToKillServiceTimeout” to 1000. Where 1000 represents 1 second.

Go to  HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management  and change the ClearPageFileAtShutdown data value to 0



You may have to use the registry search (Edit|Find) to see if these Values exist at other Key locations and edit accordingly.

If you ever wish to reset the ClearPageFileAtShutdown Value look here: http://support.microsoft.com/kb/314834

After applying these steps my shutdown time went to only a few seconds.

Hope this helps.

Please Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: