How To Fix “DISM Unable to access the image”

How to fix the “DISM Unable to access the image” error on your Windows system with these troubleshooting steps. Get your system back up and running smoothly in no time!If you have ever tried to repair Windows system corruption using DISM (Deployment Image Servicing and Management), you may have hit a wall with the error message: “Error: 2, Unable to access the image. Make sure that the image path and the Windows directory for the image exist and you have Read permissions on the folder.”This error stops the repair process dead in its tracks. While frustrating, it is usually fixable. In this guide, I will walk you through the most effective methods to resolve this error so you can get back to repairing your system.

What Causes DISM Error 2?

Before diving into the fixes, it helps to understand why DISM is throwing this error. Common triggers include:

  • Pending Actions: DISM may have pending commands from a previous interrupted operation.

  • Permissions Issues: The system account or your user account may lack proper access to the Windows directory.

  • Corrupted System Files: The Component Store (WinSxS) or the DISM tool itself is corrupted.

  • Interference: Third-party antivirus software blocking DISM from accessing files.

  • Disk Errors: Bad sectors or file system corruption on the hard drive.

How To Fix “DISM Unable to access the image”

 

Try these methods in order. After each method, restart your computer and test if DISM works.

Method 1: The “Revert Pending Actions” Fix

This is often the fastest solution. DISM gets stuck if it thinks there are pending servicing operations that it cannot process. You need to clear the queue.

  1. Press the Windows Key, type CMD, right-click on Command Prompt, and select Run as administrator.

  2. Type the following command and press Enter:
    dism.exe /image:C:\ /cleanup-image /revertpendingactions

  3. Wait for the process to complete. This tells DISM to discard any pending commands stuck in the pipeline.

  4. Once done, restart your computer.

  5. Open Command Prompt as Administrator again and run the cleanup:
    dism.exe /online /Cleanup-Image /StartComponentCleanup

  6. Finally, run System File Checker to verify health:
    sfc /scannow

  7. Now, try running your original DISM repair command again (e.g., /RestoreHealth).

Method 2: Run CHKDSK (Check Disk)

If the error is caused by file system corruption or bad sectors, CHKDSK can often resolve it by repairing the disk structure.

  1. Open File Explorer and navigate to This PC.

  2. Right-click on your C: Drive and select Properties.

  3. Go to the Tools tab.

  4. Under Error checking, click Check.

  5. Select Scan drive if prompted.

  6. If Windows cannot fix the errors, use Command Prompt (Admin) and run:
    chkdsk C: /f /r
    (Note: You will likely need to restart for this to run properly).

Method 3: Temporarily Disable Antivirus Software

Third-party security software sometimes locks files that DISM needs to modify. If you have a third-party antivirus (not just Windows Defender), try disabling it temporarily.

  1. Go to your antivirus settings.

  2. Turn off Real-time protection or Shields.

  3. Run your DISM command again.

  4. Important: Remember to turn your antivirus back on immediately after the repair finishes.

Method 4: Specify an External Source (The “Source” Fix)

If your Windows Update connection is failing or the local cache is too corrupted, DISM cannot download healthy replacement files. You can force it to use a Windows ISO file as a repair source.

  1. Download a Windows ISO: Go to the Microsoft Software Download page and download the ISO for your version of Windows (Windows 10 or 11).

  2. Mount the ISO: Right-click the downloaded ISO file and select Mount. Note the drive letter assigned (e.g., E:).

  3. Find the Index Number: Open Command Prompt (Admin) and type the following (replace E: with your mounted drive letter):
    dism /get-imageinfo /imagefile:E:\sources\install.wim
    (If you get an error, try install.esd instead of install.wim).

  4. Note the Index Number that corresponds to your Windows edition (usually Home or Pro).

  5. Run the Repair Command: Now run the repair command pointing to the ISO. Replace E: with your drive letter and # with the index number:
    DISM /Online /Cleanup-Image /RestoreHealth /Source:WIM:E:\sources\install.wim:# /LimitAccess
    (The /LimitAccess switch prevents DISM from trying to check Windows Update).

Method 5: Restore the Windows Registry (Power Outage Fix)

If your computer recently suffered a sudden power loss or crash, the Registry might be corrupt, causing DISM to lose access to system paths.

  1. Open Notepad and paste the following code:
    Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Version]

  2. Save the file as Fix.reg on your desktop.

  3. Double-click the Fix.reg file and confirm the merge.

  4. Restart your PC and try DISM again.

Method 6: In-Place Upgrade (The “Nuclear” Option)

If none of the above works, the corruption is likely too deep for DISM to fix itself. An In-Place Upgrade allows you to repair Windows without losing your files, apps, or settings.

  1. Mount the Windows ISO you downloaded earlier.

  2. Run setup.exe from the mounted ISO.

  3. Select Keep personal files and apps when prompted.

  4. Follow the on-screen instructions. This acts as a fresh install of the system files while preserving your data

Leave a Comment

Scroll to Top