Categories: How To

How To Fix “The Memory Could Not Be Written Error” in Windows 11

You are working on your PC, playing a game, or streaming videos, and suddenly, you get a “The Memory Could Not Be Written” error. How does it feel? Seeing such a message is frustrating, as it interferes with your actions. This blog focuses on the best troubleshooting methods for fixing this issue quickly. 

We have categorized the methods into various groups to help you follow specific instructions. 

Why Does This Error Occur

There can be many reasons as to why this error occurs. We have listed the most common ones below.

  • Corrupt or missing system files can lead to memory access issues, triggering this error.
  • If your computer’s RAM is damaged or not properly seated, it can cause memory allocation problems, resulting in this error.
  • Certain third-party applications or outdated drivers may conflict with the operating system, leading to memory write errors.
  • Malicious software can interfere with system operations, causing memory errors and instability.
  • Running too many processes or applications that consume too much memory can also cause this error, especially if the system runs low on available memory.

Best Fixes –  “The Memory Could Not Be Written Error” in Windows 11

We have created a table with the best possible solutions to fix this problem with storage. We recommend that you begin with the methods mentioned under Prerequisites first. If you know the cause of the error, then you can follow troubleshooting methods related to that particular cause. If the issue persists, you need to follow the steps under Unidentified Issues.

Note : If you are unsure about the reason for the error, we recommend that you scroll down and follow all the methods one by one. Remember to check if the issue persists after completing each method. Once the issue has been resolved, you can ignore the remaining methods.

Prerequisites App Related Disk Related Memory Related Unidentified Issues
Restart PC Repair App Run  Chkdsk Run Memory Diagnostic Repair.net framework
Clean Boot Reset App Run DISM Increase Virtual Memory System Restore
Malware Scan Reinstall App Run SFC Windows Reset

Prerequisites

This section includes basic troubleshooting steps like restarting the PC, performing a clean boot, and running a malware scan. Our purpose is to solve the issue as soon as possible. If the error is due to a temporary glitch, software conflict, or malware infection, then it can be solved easily without performing any advanced troubleshooting.

Method 1 – Restart Your PC

If the “The Memory Could Not Be Written” error occurs for the first time, it could be a temporary glitch, and experts suggest restarting your computer. If the issue does not reoccur, you can continue with your work. But if it reappears, you need to move to the next method.

Also Read: Best Way to Optimize Memory and Manage System Cache

Method 2 – Clean Boot

This method involves restarting your computer again, but only with a few necessary system apps. It is carried out to determine if a third-party app is causing this error. You must disable all third-party app services and prevent them from booting up when your PC restarts. Here are the steps to clean boot your PC.

1. Press Win + R to launch the Run dialog box, type “msconfig,” and click OK.


2. Navigate to the “Services” tab in the new box.


3. Check the box that says “Hide all Microsoft services”.
4. Click the “Disable all” button.
5. Click on the “Startup” tab.
6. Click on “Open Task Manager,” and a new window will open.
7. Disable all startup items by right-clicking on each item and selecting “Disable”.


8. Close the Task Manager and return to the System Configuration window.
9. Click “OK” and then reboot your PC.

Once you have done a clean boot, carry out your normal work on your PC and check if the error occurs on your PC. If it does not occur, a third-party app creates a conflict, resulting in this error. You have to identify the app and remove it from your system. To view the list of apps installed on your system, open Settings (Win + I) and click on Apps -> Installed Apps. If the error box does occur, then move to the next step.

Also Read: How to Fix Unmountable Boot Volume Error (Blue Screen)

Method 3 – Run A Malware Scan

Some experts have stated that this issue occurs due to malware infection. It is recommended that you run a full malware scan on your PC. If you are running third-party antivirus software, you need to follow the steps accordingly. We have described the steps for running a malware scan using Windows Security, a Microsoft default antivirus app installed on your PC.

1. Press the Windows key and  type “ Windows Security.”
2. Click on the relevant result under Best Match.


3. The Windows Security app will launch. Click on the Virus & Threat Protection box.
4. Next, click on Scan Options and select Full Scan.
5. Finally, click on the Scan Now button.

After you have completed a malware scan, follow the steps on the screen to quarantine or remove any infected files and restart your PC. If the issue persists, then move to the next section to troubleshoot this error.

Editor’s Tip – Use A Real-Time Antivirus (Recommended)

When malware infects your system, its potential to cause damage is unpredictable. That’s why we recommend using a real-time antivirus like T9 Antivirus, which actively protects your PC from malware. This app runs continuously, 24/7, to block all forms of malware. In addition to its malware protection, T9 Antivirus helps optimize your PC’s performance, manage startup programs, and includes a free Ad Blocker to eliminate ads while you browse the web.

Also Read: Top Features to Look for in an Antivirus Program

App Related Issues

If the “The Memory Could Not Be Written” error occurs only when you run a particular app, it clearly indicates that you need to repair, reset, or reinstall the app. If it does not resolve, you probably need to find an alternate app.

Method 4: Repair/Reset/Reinstall App

Microsoft allows users to repair and reset apps on their Windows PC. Windows OS cannot repair some apps, so it has its own repair feature. We have explained all the ways below.

1. Press Win + S to open the Search box and type “Add or Remove Programs.”
2. Click on the relevant result with the same name.
3. A new window will open, and you will find a list of apps installed on your system. In the Search bar, type the name of the conflicting app, and the app will be highlighted for you.
4. Click on the three dots at the far right to view the context menu. You may receive different options for different apps.

                            When the Advanced Options menu appears, click on it and scroll down to the Reset section. First, click the Repair button to see if the issue is resolved. If not, click the Repair button again and restart your PC.
If the Modify option appears, click on it. The app will allow you to modify, repair, or uninstall it. Select the option to repair the app, and once the process is complete, restart your computer.
If the Modify option is unavailable (grayed out), you must uninstall and reinstall the software.

If the issue persists after repairing the app, you need to perform a complete uninstallation and reinstall it from a valid source. To uninstall an app, follow the abovementioned steps and choose Uninstall from the context menu.

Also Read: Why Can’t Install or Update Applications on Windows

Disk Related

If the memory error occurs randomly, it is not app-related. It could be related to disk or memory issues on your PC. In this section, we will cover the disk-related troubleshooting methods. After the system files and disk are repaired, you should not get this error message again.

Method 5 – Run Chkdsk

The Chkdsk command is used to check for Disk errors on your PC. It is a command line tool provided by Microsoft to all Windows users. Here are the steps.

1. Press Win + R to launch the RUN box and type ‘cmd’.
2. Press Ctrl + Shift + Enter to open the Command Prompt in Admin mode.
3. Type chkdsk C: /f /r and the Check Disk command will search for errors on your PC.

If the chkdsk command does not yield any fruitful results then follow the next method.

Method 6 – Run Deployment Image Servicing And Management

The DISM tool helps to fix corrupted system images. After that, we will run the SFC tool. Here is what you need to do:

1. Press Win + R to open the RUN dialog box.
2. Type “CMD” and press Ctrl + Shift + Enter to open the command prompt in elevated mode.
3. Copy and Paste the following command followed by the Enter key.

dism /online /cleanup-image /restorehealth

4. After the process is complete, restart your computer.

Method 7 – Run System File Checker

The System File Checker is an important tool that helps to scan and fix corrupted system files on your PC. Here are the steps –

1. Press Win + R to open the RUN box and type “cmd.”
2. Press Ctrl + Shift + Enter to open the Command Prompt in admin mode.
3. Type the following command and press the Enter key.

sfc /scannow

4. Wait for the scanning process to complete. It will automatically replace any corrupted system files.
5. Reboot your PC and check if the issue has been resolved.

Also Read: How To Fix The dxgmms2.sys BSOD Error In Windows

Memory Related

Next, we move to the troubleshooting methods to fix your PC’s memory issues. They include checking the RAM and modifying the Virtual memory settings. 

Method 8 – Run Memory Diagnostic

The Memory Diagnostic tool is a built-in utility that helps scan the memory for errors. Here is what you need to do:

1. Press the Windows keys, type “Windows Memory Diagnostic,” and click the result with the same name.
2. A new dialog box will open, and click “Restart Now…”.
3. Follow the instructions, and the tool will check and fix memory-related errors.

Method 9 – Increase Virtual Memory

Some experts recommend turning on the Managing Paging file size option to fix this issue, especially if the issue is due to virtual memory. Here are the steps:

1. Press Win + E to open File Explorer.
2. Locate This PC and right-click on it to choose Properties.
3. A new box will open. Click the Advanced tab.
4. Click on the Settings button under Performance.
5. A new box will further open. Click on the Advanced tab and then click on Change.
6. Now, check the box next to Automatically manage paging file size for all drives and click the OK button.

Unidentified Issues

Method 10 – Repair.net framework

A straightforward way to fix issues with your .NET Framework is by using the official .NET Framework Repair Tool on Microsoft’s website. This useful tool can detect common problems related to the installation or updating of the .NET Framework and provide recommended solutions.

1. Visit the page for the Microsoft.NET Framework Repair Tool.
2. To access the Download information section, scroll below.
3. To download the executable file, click the Microsoft.NET Framework Repair Tool link afterward.
4. To launch the repair program after downloading it, double-click on the Netfxrepairtool.exe file.


5. If asked by User Account Control, select Yes.
6. After agreeing to the terms, click Next.
7. The repair tool will run a few tests to find the problems. When finished, it will suggest a few modifications.
8. Read the description and click Next to make the changes.
9. Click Next and Finish to finish and shut the repair tool.

Method 11 – System Restore

If you cannot get rid of the “The Memory Could Not Be Written Error” on your Windows PC, then we suggest you restore your PC to a point back in time when you did not receive the error. Here are the steps:

1. Press the Windows key and type “System Restore”.
2. Click on “Create A Restore Point” from the search results.
3. In the new box that opens, click on the System Restore Button.
4. Click on Next and choose the date you wish to restore your system.
5. Click on Next and then finally click on the Finish button.
6. Wait for the process to complete, and your PC will be restored to the point where this error did not occur.

Method 12 – Windows Reset

The final step remaining to fix this issue is to reset the PC. Here are the steps –

1. Open the Start menu and search for ‘Reset this PC.’ Then, select the appropriate option from the search results.
2. Click on “Reset PC.”


3. Select “Keep my files.”
4. Follow the on-screen instructions to start the reset process for your Windows computer.

Note : Although Windows provides an option to keep your data during the reset, it is recommended to manually back up your files externally to prevent any potential data loss.

Have You Fixed the Error

We hope that the above-mentioned methods have successfully guided you to fix the “The Memory Could Not Be Written Error” on your Windows PC. Please write to us in the comments section explaining your issue and which method helped you fix it.

Dheeraj Manghnani

Dheeraj Manghnani likes to read and write about latest technological developments that make life simpler in today's intricate world. He has been fascinated by technology since he got his first computer and is on a never ending quest to know more and share his knowledge with others.

Recent Posts

Warning: Please Back Up your Data and Replace Hard Disk Drive, What to Do

WARNING: Please back up your data and replace your hard disk drive. A failure may…

12 hours ago

How To Fix Space Marine 2 Crashing on PC

One of the most frustrating experiences in a gamer's life is when playing a game,…

2 days ago

Fortnite Insufficient Storage Error ALERT! Optimize Now

Can you help with - The insufficient storage error on Fortnite is frustrating because it…

3 days ago

How To Fix DISM /Online /Cleanup-image /Restorehealth Is Stuck On Windows

Deployment Image Servicing and Management is an inbuilt tool that helps users fix corrupted files…

5 days ago

[FIXED] DirectX 12 Is Not Supported on Your System

"DirectX 12 Is Not Supported On Your System" appears when DirectX 12 is missing, and…

6 days ago

How To Enable Seconds in Windows System Clock

Windows 11 operating system can be customized so that users can change the default Windows…

7 days ago