How To

How To Resolve the “Windows Created a Temporary Paging File” Error

February 13, 2026 4 minutters læsning Updated: February 13, 2026

If that error about Windows creating a temporary paging file pops up at startup, it’s kind of annoying, but not exactly catastrophic. Still, it hints at a deeper issue with how Windows manages virtual memory. Sometimes Windows just gets tangled up with its own settings or the pagefile.sys file itself gets corrupted. The good news is, there are a couple of fixes that often do the trick, even if they’re a little technical.

How to Fix “Windows Created a Temporary Paging File” in Windows

Method 1: Properly Configure Your Virtual Memory Settings

This step is all about making Windows happy with how it’s handling virtual memory, which is usually the cause of this message. When the settings get misfired, Windows might keep trying to recreate the paging file on every restart—kind of like it’s stuck in a loop. Setting it to automatic usually helps, but sometimes you’ll need to dive into the settings manually.

  1. Hit Windows + R to open the Run dialog box.
  2. Type systempropertiesadvanced and hit Enter. This takes you straight to System Properties under the Advanced tab.
  3. Under Performance, click on Settings.
  4. Go to the Advanced tab and click on Change under Virtual Memory.
  5. Deselect Automatically manage paging file size for all drives. It’s probably checked, which is fine, but sometimes unchecked settings cause issues.
  6. Choose your system drive (usually C:).Make sure your paging file is set there—it should be marked as System managed size. If not, select that option.
  7. If you want to tweak it manually: pick Custom size and set the Initial size and Maximum size. The recommendation is usually the amount of your RAM in MB (so 8GB is about 8192 MB).Don’t go crazy—set the initial and max size to the same to prevent Windows from resizing it repeatedly.
  8. Note: setting custom sizes can sometimes cause issues if not done right, so unless you know your way around it, just stick with System managed size.
  9. Hit OK to save your changes and close out everything.

On some systems, forcing Windows to re-evaluate and reset the paging file helps stop those repeated errors. Honestly, on a lot of setups, it’s enough to just give the system control again. If that didn’t help, here’s what might be next.

Method 2: Delete and Recreate the Pagefile.sys

This is kind of a nuclear option but works if your pagefile.sys is corrupted or causing issues. Basically, you turn off the paging file, reboot so Windows deletes it, then let Windows recreate it during startup. Fair warning—this involves unhidden files and poking around system folders, so a bit risky if you’re not comfortable with that.

  1. Press Windows + R and plug in systempropertiesadvanced again.
  2. Go to Advanced> Change under Virtual Memory.
  3. Deselect Automatically manage paging file size for all drives.
  4. Choose Custom size and set both Initial size and Maximum size to 0. This disables the paging file temporarily.
  5. Click OK, then restart your computer.
  6. After reboot, open File Explorer. To see the pagefile.sys, you’ll need to enable viewing hidden and protected system files:
    • Click the three dots in the top right corner, choose Options.
    • Go to View tab.
    • Check Show hidden files, folders, and drives.
    • Uncheck Hide protected operating system files and confirm any warning prompts.
  7. Navigate to your system drive (probably C:).Locate pagefile.sys. Select it, then press Delete to remove it. You might get a warning—that’s normal if the file is in use, but since you disabled the paging file, it should be removable.
  8. Go back to Virtual Memory Settings (repeat the previous steps), select System managed size for the drive, then check Automatically manage paging file size.
  9. Click OK, then reboot again. Now Windows will create a fresh pagefile.sys during startup, which often clears up corruption issues.

Honestly, it’s messy, but if the error was caused by a corrupt pagefile, this should do the trick. Just keep in mind: messing with system files always has some risk, so backup essential data before diving in.

Summary

  • Check and reset your virtual memory settings through System Properties.
  • If needed, disable and then force Windows to recreate pagefile.sys.
  • Always restart after making these changes to let Windows rebuild the virtual memory properly.

Wrap-up

That error about the temporary paging file isn’t the end of the world, but it’s annoying enough that fixing it is worth the effort. Usually, resetting the virtual memory settings or deleting the corrupted pagefile does the trick. Just remember, if your system is low on RAM, keeping the paging file in good shape actually helps performance. On some setups, this was enough to stop the popups, and Windows seems happier overall. Fingers crossed this helps—worked on a few machines, so there’s some hope.