The “Windows created a temporary paging file” error can be a perplexing issue for many Windows users. This message typically appears when there’s a problem with your system’s virtual memory configuration. While it may seem alarming, there are several effective ways to address this error and improve your computer’s performance.
Virtual memory, managed through the paging file (pagefile.sys), is a crucial component of Windows’ memory management system. It allows your computer to use hard disk space as an extension of RAM when physical memory runs low. When Windows cannot properly access or configure this file, it creates a temporary one, leading to the error message.
Let’s explore four methods to resolve this issue, starting with the most effective approach.
Method 1: Manually Configure Virtual Memory Settings
Adjusting your virtual memory settings can often resolve the temporary paging file error. Here’s how to do it:
Step 1: Open the System Properties window by pressing Win + R, typing systempropertiesadvanced, and hitting Enter.
Step 2: In the Advanced tab, click the Settings button under the Performance section.
Step 3: Navigate to the Advanced tab in the new window and click Change under Virtual Memory.
Step 4: Uncheck the box next to “Automatically manage paging file size for all drives” and select “System managed size” for your system drive (usually C:).
Step 5: Click Set, then OK to save the changes. Restart your computer to apply the new settings.
This method allows Windows to manage the paging file size optimally for your system, which often resolves the temporary paging file error.
Method 2: Modify Registry Settings
If the first method doesn’t work, you can try adjusting a specific registry value. However, be cautious when modifying the registry, as incorrect changes can cause system instability.
Step 1: Open the Registry Editor by pressing Win + R, typing regedit, and hitting Enter.
Step 2: Navigate to the following key:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Memory Management
Step 3: Look for a value named “PagefileOnOsVolume”. If it doesn’t exist, right-click in the right pane, select New > DWORD (32-bit) Value, and name it “PagefileOnOsVolume”.
Step 4: Double-click the value and set it to 1 if it’s currently 0, or 0 if it’s currently 1.
Step 5: Close the Registry Editor and restart your computer.
This registry modification tells Windows whether to keep the paging file on the same volume as the operating system, which can sometimes resolve paging file issues.
Method 3: Disable Active File Scavenging
Active File Scavenging (AFS) is a Windows feature that can sometimes interfere with proper paging file management. Disabling it might solve the temporary paging file error.
Step 1: Open an elevated Command Prompt by right-clicking the Start button and selecting “Command Prompt (Admin)” or “Windows PowerShell (Admin)”.
Step 2: Type the following command and press Enter:
sc config afs start= disabled
Step 3: Restart your computer for the changes to take effect.
Disabling AFS prevents it from interfering with the paging file, potentially resolving the error.
Method 4: Reset the Paging File
If all else fails, you can try resetting the paging file entirely. This process involves disabling the paging file, deleting the existing file, and then allowing Windows to create a new one.
Step 1: Open System Properties as described in Method 1.
Step 2: Navigate to the Virtual Memory settings and set both the initial and maximum size to 0 for all drives. Click Set and then OK.
Step 3: Restart your computer.
Step 4: Open File Explorer and navigate to This PC > C: drive (or whichever drive contains your Windows installation).
Step 5: In File Explorer, click View > Options > Change folder and search options. In the View tab, select “Show hidden files, folders, and drives” and uncheck “Hide protected operating system files”. Click Apply and OK.
Step 6: Find and delete the pagefile.sys file in the root of your system drive.
Step 7: Restart your computer again.
Step 8: Return to the Virtual Memory settings and check “Automatically manage paging file size for all drives”. Click OK and restart one final time.
This process allows Windows to create a fresh paging file, which often resolves any lingering issues.
By following these methods, you should be able to resolve the “Windows created a temporary paging file” error and optimize your system’s virtual memory management. Remember, the paging file plays a crucial role in Windows’ memory management, so it’s generally not recommended to disable it entirely. If you continue to experience issues after trying these solutions, consider running a full system scan for malware or consulting with a professional technician.