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

Change directory and file name of Pagefile.sys via registry

Updated: November 29, 2024
Published: December 11, 2023

Would you like to move the Pagefile.sys to a specific folder? Or set this file via the registry for more complex system configurations such as multi-boot and networks? Here we provide instructions on how to change the file path and file name of the system file via regedit.


Quick overview:

To change the Pagefile.sys via the registry (directory and file name)

While the advanced system settings in Windows typically only allow you to resize the Pagefile.sys and enable or disable it, the registry offers more options.

This is a more advanced method that requires precise handling, but don't worry - we'll guide you safely through every step:

  1. Open the Registry Editor: Type regedit into the Windows search bar and open the Registry Editor.
  2. Navigate to the correct key: Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management.
  3. Find the 'PagingFiles' value: Locate the 'PagingFiles' entry. This entry specifies the location and name of the Pagefile.sys file.
  4. To make changes: Double-click "PagingFiles" and enter the new path and filename, for example, D:\subfolder\pagefile01.sys.
  5. Save changes: Click "OK" and close the Registry Editor.
  6. Restart the system: You'll need to restart your computer for the changes to take effect.

When can changing the Pagefile.sys with regedit be useful?

Editing the paging file through the Windows Registry instead of using the advanced system settings may be more appropriate in the following cases:

  1. Specific Requirements for Storage Location and File Name: The Registry allows for a more detailed and specific configuration of the storage location and file name of Pagefile.sys. This can be useful if you want to place the Pagefile.sys in a specific directory, which isn't directly possible through the system settings.
  2. Complex system configurations: In complex or custom system configurations, such as multi-boot systems or network environments, adjustments via the registry may be necessary to avoid conflicts with other operating systems or network policies.
  3. Automation and Scripting: For IT professionals who need to make changes to multiple systems or automate configurations, the registry offers the ability to use scripts that directly access registry settings.

What must be observed when editing the registry?

  • Proceed with caution: Changes to the registry can have significant effects on your system. Therefore, proceed carefully and make sure you understand exactly what you're doing.
  • Backing Up the Registry: It is advisable to back up the registry before making any changes so that you can restore it if problems arise.
  • System Monitoring: Closely monitor your system after the restart to ensure that everything is working smoothly.
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 - 2026 Windows-Tweaks.info
Made in Germany with ❤️ 
For all technology users around the globe.
This website runs on 🌳 GREEN energy
crossmenu