How to move the Windows page file to another drive
The page file (a hidden system file that acts as overflow memory when your physical RAM fills up) lets you move virtual memory to another drive to free up space on a full C: drive or balance disk wear across multiple storage devices. Windows manages this file automatically by default, but moving it requires a few manual steps hidden inside older system menus.
Before you change your page file settings, check that your destination drive has enough free space and make sure you are signed in with an administrator account. You will also need to know the exact drive letter of the new drive where you want to place the file.
Open System Properties via the Start menu search, click Settings under Performance on the Advanced tab, click Change in the Virtual Memory section, and reassign the page file from drive C to your target drive before restarting your computer to apply the changes.
How to Access Virtual Memory Settings
Access virtual memory settings in Windows by opening the Start menu , typing View advanced system settings, and pressing Enter to open the System Properties window. From there, select the Advanced tab and click the Settings button inside the Performance section to open the Performance Options window where you can change your page file configuration.
- Open the Start menu , type
View advanced system settings, and press Enter to open the System Properties window.
- Select the Advanced tab at the top of the window.

- Locate the Performance section and click the Settings button.
- Select the Advanced tab in the Performance Options window that appears.

- Locate the Virtual memory section at the bottom of the window and click the Change button.
Disabling Automatic Page File Management
Disable automatic page file management in Windows by opening the Virtual Memory window and clearing the check box next to Automatically manage paging file size for all drives at the top of the window. Turning this off is necessary before you can manually move your page file to a different drive or change its size.
- Open the Virtual Memory window using the steps in the previous section.
- Clear the check box next to “Automatically manage paging file size for all drives” at the very top of the window.

Removing the Page File From Your Current Drive
Remove the page file from your current drive by clicking your original system drive in the Virtual Memory window list, selecting the No paging file option, and clicking the Set button. This clears the page file from your main drive so you can set it up on your new drive without conflicts.
- Click on your original system drive (typically drive C:) in the drive list inside the Virtual Memory window.
- Select the “No paging file” radio button.
- Click the Set button next to the drive list.
- Click Apply if prompted, but do not restart your computer yet.
Creating the Page File on the New Drive
Create a page file on a new drive by selecting your target secondary drive letter in the Virtual Memory window, choosing either System managed size or Custom size, and clicking the Set button before clicking OK. This tells Windows to use your secondary drive for virtual memory storage.
- Click on your target secondary drive letter in the drive list inside the Virtual Memory window.
- Select the "System managed size" radio button, or select "Custom size" and enter your specific Initial size and Maximum size in megabytes.
- Click the Set button next to the drive list.
- Click OK at the bottom of the Virtual Memory window.
- Click OK on the Performance Options window and the System Properties window.
Restarting Your Computer
Windows locks system files while they are in active use, meaning the operating system cannot release the old page file or fully activate the new one until a reboot occurs.
- Save any open work in your applications.
- Open the Start menu, click the Power icon, and select Restart.
Verifying the Move
Verify the page file move by opening File Explorer to check your destination drive for the pagefile.sys file, or by returning to the Virtual Memory settings window to confirm the active allocations on each drive. This ensures Windows successfully placed the file on your new drive before you finish up.
- Open File Explorer and open your destination drive to check for the file. You may need to enable "Show hidden files, folders, and drives" in File Explorer view options to see it.
- Return to the Virtual Memory settings window to verify that the active allocation points exclusively to the new drive letter.
Optimizing Page File Sizes on Secondary Drives
Optimize page file sizes on secondary drives by choosing between System managed size to let Windows handle the space automatically, or Custom size to set fixed minimum and maximum values. Picking a custom size helps you stop the page file from taking up too much disk space if your secondary drive has limited storage.
What to do next
You should now see the updated drive allocation reflected in your system performance properties and your primary drive will have recovered space. Move on to configuring Storage Sense (a tool that automatically frees up space) or managing your installed applications to free up additional capacity.
Was this guide helpful?
About the Author
Richard
Tech Writer, IT Professional
Richard is a writer at Geek Rewind who turns complex IT tasks into clear, step-by-step guides. He draws on years of hands-on experience in system administration and enterprise IT operations, focusing on Windows, Linux and WordPress: the problems people actually run into, and the fixes that work. His server and WordPress guides come from systems he runs himself. Richard builds and maintains the platform behind Geek Rewind, from its Ubuntu servers and Nginx configuration to its custom WordPress plugins. Many new tutorials start with readers' questions, and he's always glad to answer them in the comments.
No comments yet — be the first to share your thoughts!