Windows 10: Can I make a 'batch file' of dism and sfc to run on demand?

Discus and support Can I make a 'batch file' of dism and sfc to run on demand? in Windows 10 Software and Apps to solve the problem; Hi,I find that I regularly, run, sequentially, the following cmd commands:1. dism.exe. /online /cleanup-image /restorehealth 2. sfc /scannowCan I... Discussion in 'Windows 10 Software and Apps' started by TechnoAmeoba, Oct 15, 2021.

  1. Can I make a 'batch file' of dism and sfc to run on demand?


    Hi,I find that I regularly, run, sequentially, the following cmd commands:1. dism.exe. /online /cleanup-image /restorehealth 2. sfc /scannowCan I combine those into a batch file at all? Most conveniently to be run from a desktop shortcut?My Windows 10 Pro, on both laptop and desktop, seem to suffer every time a major Windows update is released.I am currently 66% through a repair reinstall of my Win 10 Pro on laptop apps and files retained. It is taking light years to compete, which is sort of expected.My question is regarding the batch file, unless I run into problems with the Win 10 rei

    :)
     
    TechnoAmeoba, Oct 15, 2021
    #1
  2. RejZoR Win User

    Can't get SFC and DISM to work anymore on Win10

    Ok, can someone help me out because this crap is starting to piss me off. There was once a time when you could simply run SFC and DISM to check Windows files integrity and if there were any problems found with the local files, Windows repaired it automatically. The reason why I want to run this is because I'm getting stupendously huge amount of errors and warnings in Event Viewer, but I don't want to run refresh because it'll mess up tons of apps.

    Commands I used:
    sfc /scannow
    Dism /Online /Cleanup-Image /RestoreHealth

    Fast forward few years and we now have glorious Windows 10. Trying to run the same tools, they find errors but stubbornly refuse to fix ANYTHING. What's the god damn point of it then?

    Sfc finds issues but can't repair them and DISM constantly bitches how it can't find the source. All this used to work directly in Windows 7, but in Win 10, nothing. This was one of the best features to get OS back in good state and they go and ruin it. Because Microsoft!

    I've checked this thread:
    https://social.technet.microsoft.co...sfc-failed-to-repair?forum=win10itprohardware

    Nothing worked. And they keep mentioning install.wim where my Windows image downloaded from Microsoft itself! only carries install.esd which I can't seem to use with anything.

    I've also tried this tool:
    CodePlex Archive

    Which again wants .wim file and refuses to work with esd.
     
    RejZoR, Oct 15, 2021
    #2
  3. OneMoar Win User
    How to get damn DISM to work?

    you need to run DISM first before running SFC
    SFC query's the local component stores to make repairs
    DISM is targeted for rebuilding the component stores and a offline image the 'live' section is still handled by SFC in some cases
    except on windows 8.1 and up because they changed it
    but only for certain files and only if x part of the store is corrupt
    so yea pretty confusing eh
     
    OneMoar, Oct 15, 2021
    #3
  4. RejZoR Win User

    Can I make a 'batch file' of dism and sfc to run on demand?

    How to get damn DISM to work?

    Thx guys, I'll compress this data into a blog post. For all the so called guides I've read, not a single one mentioned it has to be WIM file (some listed even ESD which clearly doesn't work) or that certain ISO images don't work with DISM.

    After I've done DISM thingie, SFC also managed to repair stuff. Which is what I've needed here.
     
    RejZoR, Oct 15, 2021
    #4
Thema:

Can I make a 'batch file' of dism and sfc to run on demand?

Loading...
  1. Can I make a 'batch file' of dism and sfc to run on demand? - Similar Threads - 'batch file' dism

  2. Can I download files and applications while sfc, DISM, or chkdsk are running?

    in Windows 10 Gaming
    Can I download files and applications while sfc, DISM, or chkdsk are running?: I'm running the commands listed in the title while downloading other apps and updating my drivers, is this perfectly fine? https://answers.microsoft.com/en-us/windows/forum/all/can-i-download-files-and-applications-while-sfc/079ccaa8-127e-44e0-a9f4-b7ba73409458
  3. Can I download files and applications while sfc, DISM, or chkdsk are running?

    in Windows 10 Software and Apps
    Can I download files and applications while sfc, DISM, or chkdsk are running?: I'm running the commands listed in the title while downloading other apps and updating my drivers, is this perfectly fine? https://answers.microsoft.com/en-us/windows/forum/all/can-i-download-files-and-applications-while-sfc/079ccaa8-127e-44e0-a9f4-b7ba73409458
  4. Can I download files and applications while sfc, DISM, or chkdsk are running?

    in Windows 10 Network and Sharing
    Can I download files and applications while sfc, DISM, or chkdsk are running?: I'm running the commands listed in the title while downloading other apps and updating my drivers, is this perfectly fine? https://answers.microsoft.com/en-us/windows/forum/all/can-i-download-files-and-applications-while-sfc/079ccaa8-127e-44e0-a9f4-b7ba73409458
  5. Can I make a 'batch file' of dism and sfc to run on demand?

    in Windows 10 Gaming
    Can I make a 'batch file' of dism and sfc to run on demand?: Hi,I find that I regularly, run, sequentially, the following cmd commands:1. dism.exe. /online /cleanup-image /restorehealth 2. sfc /scannowCan I combine those into a batch file at all? Most conveniently to be run from a desktop shortcut?My Windows 10 Pro, on both laptop and...
  6. Can I make a 'batch file' of dism and sfc to run on demand?

    in Windows 10 Installation and Upgrade
    Can I make a 'batch file' of dism and sfc to run on demand?: Hi,I find that I regularly, run, sequentially, the following cmd commands:1. dism.exe. /online /cleanup-image /restorehealth 2. sfc /scannowCan I combine those into a batch file at all? Most conveniently to be run from a desktop shortcut?My Windows 10 Pro, on both laptop and...
  7. DISM and SFC cannot run

    in Windows 10 BSOD Crashes and Debugging
    DISM and SFC cannot run: Good evening to the microsoft team.A week ago, i accidentally deleted the trustedinstaller files which is windowsapp. Due to that, i cant open most of the apps. It was my bad. However, after i reset the laptop, everything comes back to normal except for malfunction DISM and...
  8. Can you run SFC without DISM???

    in Windows 10 Performance & Maintenance
    Can you run SFC without DISM???: I am curious, before I go wandering out in the mine field, is it advisable to run the System File Checker tool without having first run the DISM tool??? My copy of DISM doesn't seem to have the "Repair Image" function, but I would still like to check the System Files to see...
  9. Can you run SFC without DISM???

    in Windows 10 Support
    Can you run SFC without DISM???: I am curious, before I go wandering out in the mine field, is it advisable to run the System File Checker tool without having first run the DISM tool??? My copy of DISM doesn't seem to have the "Repair Image" function, but I would still like to check the System Files to see...
  10. Running the SFC and DISM commands

    in Windows 10 BSOD Crashes and Debugging
    Running the SFC and DISM commands: The picture below shows how I run the sfc & dism cmds --- sfc should be run before & after the dism cmd --- [IMG] It works for me. https://answers.microsoft.com/en-us/windows/forum/windows_10-performance/running-the-sfc-and-dism-commands/3d325608-c97d-401a-8cbf-9d0a7f499bcb