Fix: ATTEMPTED_WRITE_TO_READONLY_MEMORY error in Windows 10


Milan Stanojevic
by Milan Stanojevic
Deputy Editor
Loading Comments
Affiliate Disclosure

Solution 4 – Run DISM

DISM is the third troubleshooter we’re going to try, in case the previous two failed to resolve the problem. DISM stands for Deployment Image Servicing and Management, and as its name says, it reloads the system image. So, maybe this process will resolve the BSOD issue.

We’ll walk you through both standard and the procedure that utilizes the installation media below:

  • Standard way
  1. Right-click Start and open Command Prompt (Admin).
  2. Paste the following command and press Enter:
      • DISM /Online /Cleanup-Image /RestoreHealth
  3. Wait until the scan is finished.
  4. Restart your computer and try updating again.
  • With the Windows installation media
  1. Insert your Windows installation media.
  2. Right-click the Start menu and, from the menu, choose the Command Prompt (Admin).
  3. In the command line, type the following commands and press Enter after each:
    • dism /online /cleanup-image /scanhealth
    • dism /online /cleanup-image /restorehealth
  4. Now, type the following command and press Enter:
    • DISM /Online /Cleanup-Image /RestoreHealth /source:WIM:X:SourcesInstall.wim:1 /LimitAccess
  5. Make sure to change an X value with the letter of the mounted drive with Windows 10 installation.
  6. After the procedure is finished, restart your computer.

Solution 5 – Remove problematic applications

Errors such as ATTEMPTED_WRITE_TO_READONLY_MEMORY can be caused by certain applications, therefore it’s necessary that you find and remove them. Users reported that Gigabyte On/Off software is the common cause for this error, so if you have this software installed, be sure that you remove it.

Another common cause for BSoD errors can be your antivirus software. Users reported that tools such as NoVirusThanks can cause these types of errors, and according to them, the issue was fixed after removing this tool. We have to mention that almost any antivirus program can cause this error, and if you want to fix this problem, you’ll have to remove all third-party antivirus programs from your PC. To completely remove an antivirus program, we strongly suggest that you use dedicated removal tool. Many antivirus companies have dedicated removal tools available for its software, so be sure to download one for your antivirus program. If uninstalling the antivirus fixes the issue, you might want to download the latest version of the same antivirus program that you were using before, or you can switch to any another antivirus software.

Solution 6 – Reset BIOS to default

Few users reported that they managed to fix this error by resetting BIOS to default, and you can do that easily. To see how to access and reset BIOS, be sure to check your motherboard manual for detailed instructions. Before you reset BIOS, we advise you to check your SATA Controller and see what mode you are currently using. Controller mode will be set to IDE, AHCI, or RAID, so be sure to set the SATA controller mode to the same value after you reset BIOS.

Solution 7 – Use System Restore or Windows 10 reset

If ATTEMPTED_WRITE_TO_READONLY_MEMORY error is caused by a software problem, you should be able to fix it by performing System Restore. To perform System Restore you need to do the following:

  1. Hold Shift key on your keyboard and click the Restart button. Alternatively, you can restart your computer few times during the boot sequence to start Automatic Repair.
    restart
  2. Select Troubleshoot > Advanced options > System Restore.
  3. Select your username and enter your password if you have one.
  4. Select Choose a different restore point and click Next.
  5. Choose the restore point you wish to return to and click Next. Wait for the process to finish.

If System Restore didn’t fix the issue, you’ll have to perform Windows 10 reset. To complete Windows 10 reset you might need Windows 10 installation media, and you can easily create one by using Media Creation Tool and empty USB flash drive. We have to warn you that reset process is similar to clean install, so make sure that you back up important files from your C partition before you start this procedure. To perform Windows 10 reset, follow these steps:

  1. Start Automatic Repair process and choose Troubleshoot > Reset this PC > Remove everything. Be prepared to insert Windows 10 installation media if you’re asked to.
  2. Select Only the drive where Windows is installed > Just remove my files and click the Reset button.
  3. Follow the instructions to complete the reset process.

If the BSoD error appears even after Windows 10 reset, the error is most likely caused by a faulty hardware.

Solution 8 – Check your hardware

ATTEMPTED_WRITE_TO_READONLY_MEMORY error can be caused by your hardware, so we urge you to check if your RAM is working properly. Easiest way to do that is to test your RAM modules one by one, but you can also use tools such as MemTest86+ to perform a detailed scan of your RAM. If your RAM is not the problem, you should check all other major hardware components.

Blue Screen of Death errors such as ATTEMPTED_WRITE_TO_READONLY_MEMORY can be sometimes hard to fix, but we hope that you managed to fix this error by using one of our solutions.

Editor’s Note: This post was originally published in June 2016 and has been since completely revamped and updated for freshness, accuracy, and comprehensiveness.

READ ALSO: