Ошибка 2 не удалось получить доступ к образу

  • Home
  • Partition Magic
  • Top 5 Solutions to DISM Error 2 on Windows 10

By Sherry |
Last Updated

Have you ever encountered DISM error 2 on Windows 10? How to solve the problem? There are some solutions provided by MiniTool Partition Wizard and you can feel free to have a try to fix this error.

DISM refers to Deployment Image Servicing and Management. It’s a Windows built-in tool, which mounts and services the Windows Images. It’s commonly used to solve problems on PC.

However, some users have reported that they encountered errors while using this tool. Our previous post has already introduced DISM error 50. Here, I will talk about DISM error 2. DISM error 2 usually comes with a message “unable to access the image” while running some commands related to “dism.exe /image:C: /cleanup-image”.

If you’re facing the same problem, you can follow the solutions listed in the following contents to solve it.

Solution 1: Disable or Uninstall Your Antivirus

In some cases, the security software could get in the way of some processes on your computer, which might be the reason for “DISM error 2 unable to access the image”. To fix the problem, you can try disable or uninstall your antivirus application temporarily. Then check if the DISM works properly. If the error still exists, you should move on to the next solution.

Solution 2: Refresh DISM

Another way to fix the DISM error 2 is to refresh the DISM tool. Here are the detailed steps.

Step 1: Press Win + S to open Search and type cmd in the search box. Then right-click Command Prompt from the search results and select Run as administrator.

Step 2: Input the command: dism.exe/image:C /cleanup-image /revertpendingactions. Then press Enter to execute it. This will revert pending tasks, including any Windows updates.

refresh DISM

Step 3: Restart your PC and access Windows Recovery Environment. Then go to Command Prompt.

Step 4: Input dism.exe /online/Cleanup-Image /StartComponentCleanup and press Enter to clean up the component store and help everything to run properly again.

Step 5: Restart your computer and start Windows in Safe Mode. Then run Command Prompt as administrator.

Step 6: Execute the sfc/scannow command and wait until the process is completed.

Then you can run the command dism.exe /online /Cleanup-Image /RestoreHealth and check if it works properly. If you still encounter DISM error 2 during the process, try the next solution.

Solution 3: Run Disk Defragmenter

When your DISM tool doesn’t work and Disk Cleanup can’t free up much space, you can try using Disk Defragmenter to rearrange fragmented data. Log in as administrator and follow the steps below.

Step 1: Press Win + E to open File Explorer.

Step 2: Select This PC and right-click Local Disk (C:). Then choose Properties.

Step 3: In the pop-up window, select Tools tab. Then click Optimize under Optimize and defragment drive.

click Optimize

Then follow the onscreen instructions to finish the process. Once it’s done, click Apply and OK.

Solution 4: Perform a System Restore

You can also try performing a system restore to fix DISM error 2 unable to access the image if you have created a System Restore point. In this way, you can revert some changes of your computer to an earlier state, which is helpful to fix various problems.

Here is how to fix DISM error 2 via System Restore.

Tip: This won’t affect your personal files such as documents, music, photos, and videos.

Step 1: Open Search utility and then input restore in the search box. Then click Create a restore point.

Step 2: In the pop-up window, click System Restore button. Click Next to skip the wizard.

click System Restore

Step 3: Select a system restore point according to the description and the creating time and data. Then click Next.

select a point and click Next

After the operation, you can try running DISM commands and check if the error has been fixed. If the problem still appear, you might need to reset your PC with Keep my files option.

About The Author

Position: Columnist

Sherry has been a staff editor of MiniTool for a year. She has received rigorous training about computer and digital data in company. Her articles focus on solutions to various problems that many Windows users might encounter and she is excellent at disk partitioning. She has a wide range of hobbies, including listening to music, playing video games, roller skating, reading, and so on. By the way, she is patient and serious.

DISM is a command-line tool that is used to fix corrupt Windows files on a computer, but sometimes DISM can itself run into the DISM Error 2 especially on Windows 10 and Windows 7.  The full error message usually states “DISM error 2 File not Found or DISM Error 2 Unable to access the image”. In this article, we have concluded the reasons due to which the error occurs and have also listed the solutions for them.

dism error 2

DISM Error 2

Make sure to read through all of the solutions and also to analyze the reasons due to which they are triggered in order to ensure complete eradication of the error message from your computer.

What Causes the DISM Error 2 on Windows 10?

After going through the solutions that are commonly adopted to fix this error message, we concluded that the following must be some of the most crucial reasons due to which it is triggered in the first place.

  • Command Line: In certain cases, the command line that the user is adopting might be incorrectly configured or the command used might not have been implemented properly. Therefore, we recommend that you try using a slightly different command that might sometimes do the trick and fix the DISM error 2 on your computer.
  • Stuck Tool: The DISM Tool can sometimes get stuck while executing certain commands and that can end up triggering this error message. Therefore, we recommend that you run some commands on your computer that get rid of this.
  • Antivirus: The Antivirus being used by the computer can sometimes block the DISM tool from accessing the drive by hogging its resources or falsely flagging it as a virus. Therefore, we recommend that you try and disable the Antivirus at least temporarily to ensure that the DISM error 2 isn’t being triggered because of it.
  • Bad Sectors: The Hardrive often acquires bad sectors due to prolonged usage and this can really end up harming the tool’s ability to be able to repair the drive if it has been damaged beyond repair. Therefore, we recommend that you check for any wear, tear or bad sectors on the hard disk.
  • Damaged OS: The operating system that you are using might be in a faulty state or it might not be working properly due to which the DISM error 2 is being triggered. Therefore, we recommend that you try and repair the operating system and then check to see if doing so fixes the issue.

Now that you have gone through the reasons behind its occurrence, it is about time that we move on towards implementing the solutions.

Before You Start:

Before you begin with any of the fixes make sure you are using the correct DISM version. If you are experiencing DISM error 2 it is recommended that you run the commands using WinPE. WinPE is Windows Pre-Installation Environment, it is often used to perform a recovery operation in Windows. Once done now continue on with implementing some of the advanced solutions listed below.

Fixing the DISM Error 2 Unable to Access the Image:

Solution 1: Try Using A Different Command

Some users were able to work around the error with a different command, try using the following commands in the command window and see which one works best for you:

dism.exe /image:C: /cleanup-image /revertpendingactions

OR,

dism.exe /online /cleanup-image /reverpendingactions

Solution 2: Refresh DISM Tool

By refreshing the DISM tool in Windows you might also be able to fix the error. To refresh the DISM tool follow these steps:

  1. Hold down the “Window + R” keys together on your keyboard to open up a “Run” dialog box.
  2. In the “Run” prompt type in “cmd” and then hold down on the “Shift + CTRL + Enter” keys to open an “Elevated Command Prompt”. If the system asks you for permission click to choose “YES”.
    Run Command Prompt as administrator
    Run Command Prompt
  3. In the new elevated command prompt window type the following command:
exe/image:C /Cleanup-image /revertpendingactions

4. Press “Enter” now and after the process is completed “Restart” your PC.

5. After the restart, now repeat steps one, two, and three and run the following command:

exe /online/Cleanup-Image /StartComponentCleanup

6. Once the process is completed again restart your computer.

7. Now, once again repeat steps 1,2,3 to run an elevated command prompt.

8. Type in the following command and hit “Enter”.

sfc/scannow

9. Then restart your computer once again.

10. Now, once again repeat steps one, two, and three to run an elevated command prompt.

11. Type in the following command and again hit “Enter”.

dism.exe /online /Cleanup-image /RestoreHealth

12. This will hopefully solve the DISM error on your pc, if not follow down for other solutions.

Solution 3: Disable Your Anti-Virus

Sometimes your anti-virus software can interfere with certain apps or tasks being carried out on your computer so try to disable it and then perform the task again. If you use a third-party anti-virus on your system you can simply navigate into it from the icon-tray on the taskbar, for others using Windows Defender can follow this procedure:

  1. On the search bar near the Start menu search for “Windows Security” and click to select it.
    Choose Windows Security
    Choose Windows Security Option
  2. In the left pane click on “Virus & Threat Protection” and scroll down to “Virus & threat protection Settings”.
    Virus and threat protection
    Virus and threat protection
  3. Below the Virus & Threat protection settings click to select “Manage Settings”. Here you are presented with three different security settings.
  4. Then turn off “Real-time Protection” by clicking on the slide button.
  5. Windows will ask for your permission at this stage click to select “YES”.
    Disable real-time protection
    Disable real-Time Protection
  6. Now proceed to check if the dism error 2 windows pe got resolved.

Solution 4: Check Hard Drive For Bad Sectors

Sometimes the error is caused by a dying or malfunctioning hard-drive so it’s better to check your hard-drive for bad sectors and low health. You can download Hard-disk Sentinel and monitor the health and temperature of your hard disk.

Try hard disk sentinel

Try Hard Disk Sentinel

Solution 5: Using the Disk-Cleanup Tool

Windows come with a disk-cleanup tool, it helps reset the defragmented data and can help resolve errors caused by corrupted files. To use the Disk-Clean-up tool follow the steps below:

  1. Open the “File Explorer” or “This PC” on your computer.
    Click on this pc to fix dism error 2
    Click on This PC
  2. In here locate the option of “Local Disk C (OS Drive)” and right-click on it.
  3. From the drop-down menu click to select “Properties” at the bottom.
  4. From the new window click on the “Tools” tab located beside the “General” tab.
  5. In the Tools, tab click on “Optimize” in the “Optimize and Defragment Drive” section.
    choose optimize option
    Choose Optimize Option
  6. Now just simply follow the on-screen instructions to successfully optimize the drive.

Solution 6: Perform A System Restore

System Restore is a program that creates restore points in your PC at a specific location and time. These points help restore the system to an earlier error-free version or before the installation of a new program. To perform a system restore follow the below-listed steps:

  1. On the search bar near the Start menu type in “Create A Restore Point” and open it from the search results.
  2. A new window will pop up on your screen from here click on “System Restore”.
    Choose system restore option
    Choose System Restore Option
  3. If you cannot click on System Restore, the reason is the drives on your pc are not protected. In this scenario, click to select “Local Disk C”.
  4. Next, click on the “Configure” button.
  5. In the new window select “Turn On System Protection” instead of “Disable System Protection”.
  6. Then click “OK” and “Apply” afterward.
  7. Now, click on the “System Restore” option.
  8. Create a restore point to a date when your PC was perfectly fine and then click “Next”.
    Selecting the Restore Point to fix dism error 2
    Selecting the Restore Point
  9. Once the procedure is complete, run DISM and see if the error has been eradicated.

Solution 7: Use Source Options

DSIM Errors can be caused by Windows Updates, thus here we will make use of the source option to store the non-corrupted files. To activate the source options follow the steps below:

Note: To accomplish this task you need to “install.wim” file or “install.esd” file from a Windows installation media, make sure they are from the same windows version. You can download Window installation media from Microsoft’s official website.

  1. Plug in the Windows installation media into the computer and notice the “Drive Letter”. (e.g. “E:” )
  2. Then “Open” the media explorer and explore its contents.
  3. Look for the “Source” directory and see if it contains a file named “win” or “install.esd”.
    Select install.esd file
    Select install.esd file
  4. Next, type in “Command Prompt” in the search bar and press the Enter button. The system will ask you for permission here click on “YES”.
    Run Command Prompt as administrator
    Run Command Prompt
  5. Now, enter the following command in the elevated command prompt and press “Enter”.
DISM /Online /Cleanup-Image /RestoreHealth /Source:repairSource\install.wim

7. Once the process is completed, restart your computer finally and see if the error is gone.
Note: This will repair the file without Windows update, this way DISM can work without meeting the broken update file.

Solution 8: Repairing Windows

Newly installed drivers or updates on the system can cause errors and finding the faulty driver can be very hard, so use Windows repair to repair such bugs.

  1. On the search bar near the Start menu type “Reset This PC” and click to select it.
  2. On the new window in the left “Recovery” pane click on “Get Started”.
    Select Recovery
    Choose Recovery
  3. A new popup menu will appear displaying you two options:
Keep My Files (It will keep your all files even on C drives, but only remove apps that you installed and settings setup).

Remove Everything (It will remove all files on your PC).

4. From here choose to select “Keep My Files”.

5. Lastly, just go through the Windows procedure and let it do its work; only make sure you do not power OFF your computer when the process is going on.

6. Once completed now see if you have been able to overcome the error.

Hopefully, the aforementioned solutions will help you resolve the error smoothly but if the issue still exists feel free to Contact Us here.

Здраствуйте. При обновленни win7 выключили системник и теперь он заходит только через восстановление системы и перезагружается. И не получается удалить через командную строку обновления. Я набираю dism /image:*: /get-packages выдает ошибка 2. Не удалось получить доступ к образу. Убедитесь, что путь к образу и каталог Windows образа существуют и уч.запись обладает правами на чтение папки. Файл журнала DISM находится по адресу x:windowsLogsDISMdism.log. Что делать помогите?

На это сообщение еще не было создано никаких ответов.
Будьте первым, кто ответит на него.

Гость

Ваш ответ

by Milan Stanojevic

Milan has been enthusiastic about technology ever since his childhood days, and this led him to take interest in all PC-related technologies. He’s a PC enthusiast and he… read more


Updated on

  • DISM is built into the Windows operating system and is available as a command-line tool to mount Windows images from files and to update a running system as well.
  • Sometimes, errors can occur when running the tool. Fix them quickly by disabling antivirus, updating the tool, and by doing some general cleanup.
  • More articles about this tool can be found in the DISM section.
  • Nobody likes errors. That’s why we have a comprehensive Windows 10 Errors Troubleshooting Hub with clear instructions on how to deal with any issue.

DISM error 2

The DISM or Deployment Image Servicing and Management tool, also known as the System Update Readiness tool, helps fix some Windows corruption errors that may cause updates and service packs not to install, like if a file is damaged.

This tool can be used to service a Windows image or prepare a WinRE (Windows Recovery Environment) and/or WinPE (Windows Preinstallation Environment) image, but, it can also be used to service .wim (Windows image) or .vhd/.vhdx (virtual hard disk).

Whenever you try to use the DISM command line and get the DISM error 2 displayed as a message, you may not know the first thing to do in such a case, but there are solutions you can try as outlined below, to fix the error.

How to fix DISM error 2

  1. Temporarily disable or uninstall your antivirus
  2. Check your DISM version
  3. Refresh the DISM tool
  4. Reset your PC with Keep my files option
  5. Use Disk Cleanup tool

1. Temporarily disable or uninstall your antivirus

Sometimes your security software can get in the way of some of the processes on your computer, so in the case of a DISM error 2 issues, you can temporarily disable the antivirus, or uninstall it, and if the issue persists, you can unmount the image and check the result again.

Remember to reinstall or enable your antivirus once you’re done.

2. Check your DISM version

Ensure you’re using the correct version of DISM that is installed with the Windows ADK. Also, do not mount images to protected folders like the UserDocuments folder.

If DISM processes are interrupted, temporarily disconnect from the network, and consider running commands from WinPE instead.

3. Refresh the DISM tool

  • Right click Start and then select Command Prompt (Admin)
dism error 2
  • Type this command: exe/image:C /cleanup-image /revertpendingactions. This will revert pending tasks, and this includes any Windows updates that are pending
  • Boot your computer and then run in recovery command prompt
  • Execute this command: exe /online/Cleanup-Image /StartComponentCleanup. This cleans up the component store and helps everything to run properly again

Restart and then run an SFC scan in Safe Mode by doing the following:

  • Click Start and then go to the search field box and type CMD
  • Go to Command Prompt on the search results
  • Right click and select Run as Administrator
dism error 2
  • Type sfc/scannow
dism error 2
  • Press Enter
  • Restart your computer and then run this command: dism.exe /online /Cleanup-Image /RestoreHealth

If this doesn’t help, try the next solution.

4. Reset your PC with Keep my files option

If you’ve tried the system restore and it doesn’t work, reset your PC with Keep my files option.

Performing a reset allows you to choose which files you want to keep, or remove, and then reinstalls Windows, so follow the steps below:

  • Click Start
  • Click Settings
dism error 2
  • Click Update & Security
dism error 2
  • Click Recovery on the left pane
dism error 2
  • Click Reset this PC
dism error 2
  • Click Get started
dism error 2
  • Select Keep my files option

Note: all your personal files will be deleted and settings reset. Any apps you installed will be removed, and only pre-installed apps that came with your PC will be reinstalled.

5. Use Disk Cleanup tool

Since DISM tool won’t work or brings up DISM error 2, and Disk Cleanup can’t release much space, use the Disk Defragmenter to rearrange fragmented data on the system by doing the following:

  • Log in as Administrator
  • Click Start and select File Explorer
  • Expand This PC
  • Right click on Local Disk (C:) and click Properties
  • Go to Tools tab
dism error 2
  • Under Optimize and defragment drive, select Optimize
dism error 2
  • Click Apply and then press enter or click OK
Read more about this topic

  • FIX: DISM failed on Windows 10/11
  • Security Settings Blocked Self-signed Application [Fix]
  • Fix: Page Fault in Nonpaged Area on Windows 10
  • Bindflt.sys Blue Screen: How to Fix It in 5 Steps
  • Fix: A Service Installation Section in this INF is Invalid

Have you managed to fix DISM error 2 on your computer using any of these solutions? Let us know by leaving a comment in the section below.

newsletter icon

Понравилась статья? Поделить с друзьями:
  • Ошибка 1c0101 bmw f20
  • Ошибка 2 на шевроле нива на щитке приборов
  • Ошибка 1a39 плоттера
  • Ошибка 2 negotiation error dr web
  • Ошибка 1c01 volvo