Solution for persisting “Windows created a temporary paging file on your computer” error
My Windows 7 laptop began displaying a notification/error every time I logged in:
Windows created a temporary paging file on your computer because of a problem that
occured with your paging file configuration when you started your computer. The total paging
file size for all disk drives may be somewhat larger than the size you specified
After clicking OK, it would open the virtual memory settings without any explanation of what you were supposed to check or do there.
This evidently happens because pagefile.sys
, the file that Windows uses for virtual memory, has become corrupted in some way.
This Microsoft Answers article recommends running an SFC (system file check). Here’s how to run an SFC. This did not solve the problem for me, but it is something you should try first.
Here’s how I cleared it up:
- Log in under a local Administrator account. (Do this after each restart in these instructions as well.)
- If it’s not already open, open the virtual memory settings by rich-clicking on Computer, →
Properties
→ Advanced System Settings
→ click the Advanced
tab → Under Performance, click Settings
, go to Advanced
tab, finally under Virtual Memory section click the Change
button.
- Uncheck the
Autmatically manage paging file size for all drives
checkbox.
- Set a “Custom size” for the paging file on the C drive: 0MB initial, 0MB maximum.
- Click OK, close all dialog boxes, and restart your computer.
- After logging in again, delete the file
C:\pagefile.sys
- To do this, you may need to change your folder settings so you can see it first. Open a window of your C: drive and click
Organize
at the top, then Folder and Search Options
- Click the
View
tab, and make sure Show hidden files, folders and drives
is turned on, and that Hide protected system files
is not checked.
- Click OK and go back to your C: drive, find
pagefile.sys
and delete it.
- Now go back to the virtual memory settings (see step 2 above) and set the paging file for the C: drive to
System managed size
, and then make sure the Automatically manage paging file size for all drives
checkbox is checked.
- Click OK, close all dialog boxes, and restart your computer.
A summary of what this does: By temporarily turning off virtual memory, you allow yourself to delete the (now-corrupt) paging file. Then when you re-enable virtual memory, Windows automatically builds a new paging file from scratch, and voilĂ , problem solved.
I was helped by this thread at geekstogo.com although I did not find it necessary to do any editing of the Registry or any of that jazz. Try the simplest solution first, I always say.