SFC and Dism commands script

Hi!

I’d like a script that will run these commands and capture the output.

sfc /scannow
dism.exe /online /cleanup-image /scanhealth
dism.exe /online /cleanup-image /restorehealth
dism.exe /online /cleanup-image /startcomponentcleanup

Thanks.

-m

@invisikcorp great idea.

Hi @invisikcorp,

We have asked our script developers to check your script request and provide feedback on this.

Kind Regards,
PremJK

Hi @invisikcorp,

Please check the script links provided by our script developers

Script for DISM Scan Health - https://scripts.itarian.com/frontend/web/topic/script-for-dism-scan-health
Script for DISM Restore Health - https://scripts.itarian.com/frontend/web/topic/script-for-dism-restore-health
Script for DISM Startcomponentcleanup - https://scripts.itarian.com/frontend/web/topic/script-for-dism-startcomponentcleanup

Kind Regards,
PremJK

Hi @PremJkumar , do you have a script for SFC /scannow?

Hi @nct,

yes, please check this script for “SFC Scannow”
https://scripts.itarian.com/frontend/web/topic/script-to-perform-sfc-scannow

Kind Regards,
PremJK

Excellent scripts thanks, these will be extremely useful.