Friday, 14 September 2012

How Can You Clear Automatically The Windows Paging File When The Computer Shuts Down



In Windows Operating System has a very good feature called "virtual memory" which converts your hard drive space into RAM. It works in addition to the RAM which already installed in your Computer. This file is named pagefile.sys. The purpose of this is to create more memory available for running applications. This paging file has helpful feature,but  there is one drawback also that Data remains there even after your computer has been shut down and started back up. There is a simple value that can be added to the registry to have Windows automatically clear the paging file when the computer shuts down. This may slow the shutdown time by one to two minutes, but it will be safe in the long-run.

NOTE:  Changing the registry's wrong setting or changing a setting incorrectly can cause Windows to not function correctly.
Here are the steps to automatically clear the Windows paging file when the computer shuts down:
        1.   Click Start

         2.  Click Run (Windows key + R) 

         3.  Type regedit or regedt32.exe



       4.  HKEY_LOCAL_MACHINE

         
           5.  SYSTEM


             6. CurrentControlSet


              7. Control


               8. Session Manager


                         9. Memory Management


Go to the right side of the window (where the list of REG_DWORD entries are) for an entry called "ClearPageFileAtShutdown". If you see it, skip to step 15. If you don't see it, continue with step 10.

 10. Right-click any blank space on the right side of the window
 11. Click New
 12. Select DWORD Value
 13. A new value will be created and with the highlited text New Value #1.
 14. Rename the text New Value #1 with ClearPageFileAtShutdown.
 15. Right-click on it to pull down a small menu and select Modify.

 16. Where it says "Value data:" and has a text field with the number "0" entered, change that to "1" (without the quote marks).

 17. Click OK.
The changes will take effect after you reboot your computer.

I hope you like it!

No comments:

Post a Comment