Script to run the SFC procedure and then after it finishes DISM?

Is there any way at present to run a second procedure after the first finishes on Itarian, if not, could a script be created to run SFC and then after it finishes DISM?
https://scripts.itarian.com/frontend/web/topic/script-to-perform-sfc-scannow
https://scripts.itarian.com/frontend/web/topic/script-for-dism-restore-health

Thanks

Hi @nct,

Unfortunately, we can’t call another procedure from one procedure. We have asked our script developers to create a script where SFC will run then DISM will run once SFC is finished.

Kind Regards,
PremJK

Thanks, the results will also need show on the portal like normal.

Hi

Correct me if I’m wrong, but we can combine these 2 (or more) procedures into one ?
Open the first procedure then at the end simply click “add existing procedure” or just copy and paste both into a new one.

They should run one after the other, as have this on my systems as a first up run with about 7 different scripts all in one.

mcfproservices

Hi @nct,

Please try this JSON file prepared by our script developers and provide your feedback.
Note: The script execution will take 20mins to 2hours to complete, it depends on Hard disk

Kind Regards,
PremJK

20211118-sfc-and-dism(1).json (1.83 KB)

Thanks, @PremJK , that works well. Please could you add to https://scripts.itarian.com/f?

Hi @nct,

Please check this script link published in scripts.itarian.com as requested
https://scripts.itarian.com/frontend/web/topic/script-to-perfom-sfc-and-dism-scan

Kind Regards,
PremJK

@PremJK , perhaps make it clear on the scripts page or description that it runs the specific DISM command? DISM /Online /Cleanup-Image /RestoreHealth

Hi @nct,

Thanks, we have updated the script page as suggested.

Kind Regards,
PremJK