Users mainly report this issue on Windows 7, but there are some scarce occurrences on Windows 10.

What is Pagefile.sys?

Pagefile.sys (also known as the swap file), is a Windows paging file that the operating system uses as Virtual Memory. Whenever it runs out of physical memory (or RAM), Windows will resort to virtual memory. If your computer is performing a premium activity in which all of your system resources are required, some of the information stored on RAM will be written to the paging file (pagefile.sys). In the event that the information that was just transferred to the paging file is needed again, the system will write other contents in the paging file and the previously written information is read back in. Over time, this paging file can grow so large to the point where it ends up corrupting itself. Windows has gotten more efficient at managing the pagefile.sys file, but there are still occurrences where the paging file needs to be recreated from scratch.

Fixing the pagefile.sys issue

If you’re looking to troubleshoot this issue, there are actually three potential fixes that have helped a lot of users resolve the issue. We are going to break down each method and discuss the steps and effects in detail. Please follow each potential solution in order until you encounter a fix that resolves your issue.

Method 1: Disabling AFS via elevated Command Prompt

AFS is the Audio File System driver. Its purpose is to allow Windows to read Audio CD’s and present the tracks as individual files. Under certain conditions, Windows 7 is fooled into believing that an Audio CD is mounted as a fixed disk – because it cannot read the disk and create a pagefile.sys file on it, it causes the system to fail with the Windows created a temporary paging file error. This method is the easiest out of the bunch, and it involves disabling the audio file system driver. This might have repercussions if you ever decide to listen to an Audio CD on your computer. But since Audio CD’s are almost completely dead, the chances of this method causing underlying issues is minimal. But keep in mind that this method might not be applicable if you don’t have the AFS driver installed. In any case, we are also going to feature the steps of re-enabling the Audio File System driver in case the method was not effective or you want to listen to an Audio CD on your computer. Follow the steps below to disable the AFS driver: If the Windows created a temporary paging file error doesn’t resurface after the restart, you have successfully resolved your issue. Note: In case you ever need to mount or listen to an Audio CD after following this method, you can re-enable the AFS driver by opening another elevated Command Prompt (step 1) and running the sc config afs start= enabled command. In the event that the system returned “The specified service does not exist as an installed device”, move to the method below.

Method 2: Using the System File Checker tool

The Windows created a temporary paging file error can actually originate from a system file error, in which case running a couple of diagnostics might resolve the issue automatically. Some users have been able to eliminate the issue by running an SFC scan. The System File Checker tool will scan all protected system files and replace all corrupted files with a cached, clean copy of them. We are going to complement this scan with a DISM /Restorehealth command in order to use Windows Update to fix any remaining corrupted files. Finally, we’re going to run the sfc /scannow once again and restart the PC. Note: The sfc /scannow command will attempt to fix any corrupted files by using the Windows Component Store – hence, it doesn’t require an internet connection. However, running the Dism /Online /Cleanup-Image /RestoreHealth command relies on WU (Windows Update) to replace corruption, so internet access is required. With this in mind, make sure you have a stable internet connection before going through the steps below. Keep in mind that it’s a common occurrence for the System File Checker to identify and fix errors without reporting them. Regardless of the outcome of the first SFC scan, please go through all the steps provided below (SFC scan > RestoreHealth > SFC scan) When ready, follow the steps below to run the required diagnostics: The next time your system boots up, check if the issue has been resolved. If you’re still experiencing the same Windows created a temporary paging file error, continue with the method below.

Method 3: Forcing Windows to make a fresh copy of pagefile.sys

If the first two methods have been unsuccessful, let’s take a more direct route and delete the paging file. The following steps will instruct you how to temporarily disable virtual memory – this will allow you the (possibly corrupted) paging file. After we delete the pagefile.sys file, Windows will be forced to build a new paging file from scratch, thus solving any corruption-related problem automatically. Note: Although pagefile.sys is located at C:\pagefile.sys, you won’t be able to see it unless you instruct your Windows Explorer to show hidden operating system files. However, you won’t be able to delete it until you force your OS to stop using your file (by disabling virtual memory). Keep in mind that deleting the pagefile.sys file will not have any negative impact on your system whatsoever. On the contrary, it will help free up some valuable disk space and speed up certain processes once the new paging file is created. Follow the steps down below to force your operating system to create a new pagefile.sys file:

How to Fix “Unable to execute file in the temporary directory” Error on Windows…Dameware Remote Support Review – A Software Created for System Admins and MSPsHow to Fix iTunes Error Code -50 on Windows ’temporary problem’FIX: Can’t Delete Temporary Files on Windows 10 Fix  Windows created a temporary paging file - 91Fix  Windows created a temporary paging file - 76Fix  Windows created a temporary paging file - 78Fix  Windows created a temporary paging file - 84Fix  Windows created a temporary paging file - 13Fix  Windows created a temporary paging file - 19Fix  Windows created a temporary paging file - 44Fix  Windows created a temporary paging file - 61Fix  Windows created a temporary paging file - 46Fix  Windows created a temporary paging file - 67Fix  Windows created a temporary paging file - 68Fix  Windows created a temporary paging file - 21Fix  Windows created a temporary paging file - 44Fix  Windows created a temporary paging file - 8Fix  Windows created a temporary paging file - 46