Share via

Dism <erore 2 "The DISM log file can be found at C:\WINDOWS\Logs\DISM\dism.log">

Anonymous
2018-10-18T18:59:30+00:00

Hi, Why I can`t do this commant:

Dism /Online /Cleanup-Image /CheckHealth
Dism /Online /Cleanup-Image /ScanHealth
Dism /Online /Cleanup-Image /RestoreHealth

ERORE:

C:\WINDOWS\system32>dism.exe /image:C: /cleanup-image /revertpendingactions

Deployment Image Servicing and Management tool

Version: 10.0.17134.1

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.

The DISM log file can be found at C:\WINDOWS\Logs\DISM\dism.log

Windows for home | Windows 10 | Settings

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

  1. Anonymous
    2018-10-19T07:50:21+00:00

    Hello,

    Thank you for writing to Microsoft Community Forums.

    1. Since when are you facing this issue?
    2. Did you make any changes prior to this issue?
    3. What is the error message you get when you run Dism /Online /Cleanup-Image /RestoreHealth?

    Method 1: Run the following commands in the PowerShell (administrator) and see if you get the same error message.

    • Repair-WindowsImage -Online -CheckHealth
    • Repair-WindowsImage -Online -ScanHealth
    • Repair-WindowsImage -Online -RestoreHealth

    Method 2: Download Windows 10 ISO .

    • Double click on the Windows 10 ISO file > double click on sources folder > click on the address bar and copy the file location the file location would be E:\sources, so copy E:\sources and open notepad and paste E:\sources.
    • Now, add to E:\sources\install.esd:1 /limitaccess.

    Note: If you do not have install.esd in sources folder, then you will have install.wim, so add whichever install file you have in the notepad.

    The complete command in the notepad should look like: Dism /Online /Cleanup-Image /RestoreHealth /Source:esd:E:\Sources\Install.esd:1 /limitaccess

    You can run the above command either in command prompt or in PowerShell.

    Note: This will take some long time, so wait patiently and don't power off the computer or use the computer when this process is going on, otherwise the computer will definitley go in no boot and we can only do a custom installation.

    • Open command prompt and copy and paste the above command and let the scan run.
    • Once the scan is completed, restart the pc once for the changes to take effect and check for the issue.

    Hope it helps.

    Let us know if you got the help you needed by clicking Yes or No.

    Mala.S

    Microsoft Community - Moderator

    30+ people found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful