Windows Tweaks Logo Microsoft PC-Hilfe - 02 blue red
Windows Tweaks Logo Microsoft PC Help - 09 white 120

Windows 2000 - Delete the swap file on shutdown

November 25, 2013
Updated: December 6, 2023
Quick overview:

The swap file is the so-called virtual working memory of Windows 2000, in case the working memory runs out. However, if a program crashes, remnants remain in the swap file. As a result, this file fragments and access to it becomes slower. However, you can arrange for Windows to overwrite the so-called page file with zeros every time it shuts down.

1. Click on Start > Run and type regedit in the command line. Navigation is similar to Windows Explorer. Go to the following values in sequence HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Memory Management.

2. You will now see various lines in the right-hand pane. Double-click on the value ClearPageFileAtShutDown and enter a 1 (without quotation marks).

Note: The Windows swap file should require a fixed (large) and continuous space on the hard disk. It is therefore recommended to switch off the swap file completely (the way to do this can be found here, you only need to select No swap file). Now defragment your hard disk, e.g. with O&O Defrag V6, so that a basic order and structure is established in your file system. Now activate the swap file again, as in the instructions above, and set it to the desired value. The swap file is moved in one piece to the end of your file system - the defragmentation of the swap file (also known as PageFile) is now complete. The path of the read/write head of the hard disk is as short as possible and a slightly noticeable increase in performance awaits you.

NOTE FOR NEW PUBLICATION: This article was produced by Sandro Villinger and comes from the Windows Tweaks archive, which has been built up since the late 1990s.

Founded Windows Tweaks as a teenager in 2001, his helpful PC tricks made it Germany's most visited Windows site (at the time Sandro looked like this). He then went on to write for international publications such as PC-Praxis, Computerbild, PCWorld in the USA, IMTEST.de and Hifi.de. Sandro's main job is as Global Product Marketing Lead and Consultant for various global tech companies, including Microsoft, AVG, Avast, Nero, TeamViewer, Swiss IT Security Group and now currently in the fintech sector for Gendigital. But he can't get rid of his passion and shares his tweaks here again. Privately, he enjoys traveling the world and loves Asia, especially Japan, Singapore and Korea, but also natural places like Iceland and the Nordics. You can reach Sandro via e-mail.

Leave a Reply

Your email address will not be published. Required fields are marked *

Windows Tweaks Logo Microsoft PC Help - 09 white 120
by Real Tech Experts
Save time and stress with expert knowledge about software, hardware, AI & Microsoft. 
Windows Tweaks Microsoft PC Help - SINCE 1998 - retina 2

Time-saving tips for PCs, laptops, Windows & software?

Subscribe to our newsletter and receive only our best guides & tweaks as well as exclusive tips for our subscribers. 
Newsletter-Form
Unsubscribe at any time. Approximately 1 - 2 emails per month. This consent includes information on revocation, shipping service provider, and statistics according to our Privacy Policy.
© 1998 - 2025 Windows-Tweaks.info
Made in Germany with ❤️ 
For all technology users around the globe.
This website runs on 🌳 GREEN energy
crossmenu