Steps to schedule Win 10 computers to run SFC & DISM commands

What are the steps necessary to schedule all Windows 10 computers to run the SFC & DISM commands within a Server 2016 domain? I would like to have these commands run once a week.

Can this be done using a group policy or task scheduler command?

The commands that I would like to run are:

DISM.exe /Online /Cleanup-Image /Scanhealth
DISM.exe /Online /Cleanup-Image /Restorehealth
sfc /scannow
IT GuyNetwork EngineerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

JohnBusiness Consultant (Owner)Commented:
You can put the commands (no need for ScanHealth here) in a batch file and run with Task Scheduler Set the Schedule for weekly and be sure to use elevated authority so the commands will run.

I might also suggest Monthly to be adequate.

These commands are corrective and if nothing is wrong there is no need to even run them.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
I can only say "wow". Why on earth would you want that?
I support windows networks for 17 years now. In these 17 years, sfc / dism helped me maybe twice. It is no real cure and most problems are not rooted in file corruption.

I am tempted to say that this measure will cause a lot more pain than cure.
i 'm totally with McKnife here  - there's no need, and will cause a lot of unneeded pc activity
and i'm not even talking about the problems you can encounter, like when the program does not run till the end, etc..
William MillerIT SpecialistCommented:
You won't see any benefit from running these on a weakly basis. These are diagnostic tools more than they are remedies for issues.
JohnBusiness Consultant (Owner)Commented:
Thank you and good luck with this.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows 10

From novice to tech pro — start learning today.