scannow and dism don't work right

Page 1 of 2 12 LastLast

  1. Posts : 356
    windows 10 pro x64 21H1
       #1

    scannow and dism don't work right


    I ran sfc/scannow (trying to diagnose a sleep problem) and it found irreparable files, and I ran it again in safe mode, and again, irreparable.
    I ran dism and it couldn't access the source files. (Afterwards, I checked windows update, and it says that the computer is up to date, and the last check was at the time I ran dism!)
    Is this behavior normal for windows 10 pro x64?
      My Computers


  2. Posts : 605
    Windows 10
       #2

    What do you mean they don't work right? Details!

    Are you using an administrative command prompt (right click Start, select Command Prompt [Admin])?
      My Computer


  3. Posts : 356
    windows 10 pro x64 21H1
    Thread Starter
       #3

    yes, elevated command prompt.
    my message indeed contains the errors I encountered.
    scannow complains of irreparable files
    dism complains that
    it couldn't access the source files
      My Computers


  4. Posts : 605
    Windows 10
       #4

    shmu26 said:
    yes, elevated command prompt.
    my message indeed contains the errors I encountered.
    scannow complains of irreparable files
    dism complains that
    it couldn't access the source files
    Sorry, dark on dark (dark theme), couldn't see the context of the message.

    Have you tried running sfc /scannow Command at Boot?
      My Computer


  5. Posts : 356
    windows 10 pro x64 21H1
    Thread Starter
       #5

    fracking4oil said:
    Sorry, dark on dark (dark theme), couldn't see the context of the message.

    Have you tried running sfc /scannow Command at Boot?
    I didn't try that one yet, too lazy... maybe I will give it a go.
      My Computers


  6. Posts : 2,799
    Linux Mint 20.1 Win10Prox64
       #6

    You first need to run dism command to fix the component store then you can proceed to run sfc.
    You also need the Windows 10 ISO from Windows 10 Download - Tech Bench. extract with Winrar or 7-zip

    1- Create a folder on desktop: mount
    2- Copy install.wim to desktop from the extracted ISO in the Sources folder.

    Open Admin Command prompt, copy each line then run:

    Dism /mount-wim /wimFile:%USERPROFILE%\Desktop\install.wim /index:1 /MountDir:%USERPROFILE%\Desktop\mount

    Dism /Online /Cleanup-Image /CheckHealth

    Dism /Online /Cleanup-Image /RestoreHealth /Source:%USERPROFILE%\Desktop\mount\windows /LimitAccess

    Dism /unmount-wim /Mountdir:%USERPROFILE%\Desktop\mount /discard

    After done with component store repair, run: sfc /scannow

    NOTE: You might have to re-run sfc multiple times until you get a clean message.
      My Computer


  7. Posts : 356
    windows 10 pro x64 21H1
    Thread Starter
       #7

    thanks.
    I made the mount folder on my desktop, and I mounted a ISO of windows 10, it is an ISO that I downloaded after the big november update.
    I copied the install.wim file from it, and pasted it in the mount folder.
    I ran admin cmd prompt, and entered the first command.
    It returned the error pasted below, even though I can clearly see that the file is in the specified folder:

    Error: 2


    The system cannot find the file specified.


    The DISM log file can be found at C:\windows\Logs\DISM\dism.log
    topgundcp said:
    You first need to run dism command to fix the component store then you can proceed to run sfc.
    You also need the Windows 10 ISO from Windows 10 Download - Tech Bench. extract with Winrar or 7-zip

    1- Create a folder on desktop: mount
    2- Copy install.wim to desktop from the extracted ISO in the Sources folder.

    Open Admin Command prompt, copy each line then run:

    Dism /mount-wim /wimFile:%USERPROFILE%\Desktop\install.wim /index:1 /MountDir:%USERPROFILE%\Desktop\mount

    Dism /Online /Cleanup-Image /CheckHealth

    Dism /Online /Cleanup-Image /RestoreHealth /Source:%USERPROFILE%\Desktop\mount\windows /LimitAccess

    Dism /unmount-wim /Mountdir:%USERPROFILE%\Desktop\mount /discard

    After done with component store repair, run: sfc /scannow

    NOTE: You might have to re-run sfc multiple times until you get a clean message.
      My Computers


  8. Posts : 356
    windows 10 pro x64 21H1
    Thread Starter
       #8

    I just now ran dism check health, and it shows no problems.
    If no problems, then why did scannow say there were problems?
    this is the message I got:
    C:\windows\system32>Dism /Online /Cleanup-Image /CheckHealth


    Deployment Image Servicing and Management tool
    Version: 10.0.10586.0


    Image Version: 10.0.10586.0


    No component store corruption detected.
    The operation completed successfully.
      My Computers


  9. Posts : 356
    windows 10 pro x64 21H1
    Thread Starter
       #9

    I saw this post on reddit.
    It sounds like maybe windows.old is the source of the "corrupt and unrepairable" files.? If that is true, there really is no problem to begin with.
    Windows 10 can't repair corrupt files! : Windows10
      My Computers


  10. Posts : 4,124
    Windows 3.1 to Windows 11
       #10

    see link in sig below - program runs all the needed cmds.. to SFC and Restore health
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 02:01.
Find Us




Windows 10 Forums