How to Automate Windows Repair using SFC and DISM - NeweggTechie/Windows-Troubleshooting-Utilities GitHub Wiki

  • Put sfc_dism.bat in any folder, download here

  • Open up Task Scheduler in Windows, on the Right side, click "Create Task"

  • In the General Tab

  1. Choose a name like "SFC DSIM" or "windows repair"
  2. Press "Run with highest Privileges" - this is to stop it asking for admin permissions with the pop up prompt.
  3. Click Hidden so there is no bat window that launches (would cause an alt tab if in fullscreen)
  • In the Triggers Tab, press new
  1. Begin Task - On Schedule
  2. In settings - Check Daily. "Set to Recur every: 1 day(s)" if you want it to run daily, but I would reccomend to use the "At Log on" trigger 2a. In Advanced settings - Repeat task every: x Hours - dropdown max's at 1 but you can type in longer durations.
  3. Set For a duration of: to Indefinitely, Press OK
  • In the Actions Tab, press new
  1. Set Action: Start a program
  2. In settings - Press Browse beside Program/Script, find your sfc_dism.bat file and select it, Press OK
  • Leave the Conditions & Settings tabs on default, Press OK