Windows – Issues with paging file

pagefilewindowswindows 7

Issue:
Paging file not being created properly

Symptoms:
Performance Options dialog box on boot and a pop-up box stating
"Windows created a temporary paging file on your computer because of a problem that occurred 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."

I have attempted to fix the issue using the command "sc config afs start= disabled" but the afs service does not exist. I also check for an existing pagefile.sys to attempt deletion but it does not exist either.

Edit:
How do I fix it?

Best Answer

  • 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 right-clicking on Computer, → Properties → Advanced System Settings → click the Advanced tab → Under Performance, click Settings, go to Advanced tab, finally under the 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: 0 MB initial, 0 MB 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.
Related Question