Pages

Wednesday, December 29, 2010

Slow shutdown of Windows 7? Fix it quickly

I encountered a problem of my PC with Windows 7 shutting down too slow (about 110 seconds). Being otherwise really happy with Windows 7 and it's stability, I investigated what causes this slow shutdown.
Turns out the solution was pretty easy. Some Windows 7 tuning utility allowed me to set some "security setting" which deleted the pagefile.sys each time I was shutting down the computer. Luckily, I stumbled upon this site with solution.
  1. Run gpedit.msc
  2. Find the thread Computer configuration/Windows settings/Security settings/Local ploicies/Security options/
  3. Find the Shutdown:Clear virtual memory pagefile setting
  4. Set it to Disabled
  5. Reboot
And that's it. My computer now shuts down in about 20 seconds. Of course, you don't need to shut down your computer every day, just put it to sleep or (when traveling) hibernate, but sometimes it is necessary and it is handy when shutting down the computer with Windows doesn't take too long.

2 comments:

  1. Hey what about if you got win7 home and cant run gpedit.msc? what can i do in that case?

    ReplyDelete
  2. [Start] [Run] [Regedit]
    Registry Key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management
    Modify/Create the Value Data Type(s) and Value Name(s) as detailed below.
    Data Type: REG_DWORD [Dword Value] // Value Name: ClearPageFileAtShutdown

    Set it to 0
    Exit Registry and Reboot

    ReplyDelete