Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


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

Posted on 2017-10-19
High Priority
Last Modified: 2017-10-25
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
Question by:Knowledgeable
LVL 100

Accepted Solution

John Hurst earned 1506 total points
ID: 42337562
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.
LVL 58

Assisted Solution

McKnife earned 498 total points
ID: 42337837
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.
LVL 93

Assisted Solution

nobus earned 498 total points
ID: 42337931
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..

Assisted Solution

by:William Miller
William Miller earned 498 total points
ID: 42338151
You won't see any benefit from running these on a weakly basis. These are diagnostic tools more than they are remedies for issues.
LVL 100

Expert Comment

by:John Hurst
ID: 42344085
Thank you and good luck with this.

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most folks would know the basics of how Dropbox works, so that’s not the purpose of this article. Security is what it’s all about, so here I’ll share how I choose to secure my Dropbox Account and the Data it contains.
Each password manager has its own problems in dealing with certain websites and their login methods. In Part 1, I review the Top 5 Password Managers that I've found to be the best. In Part 2 we'll look at which ones co-exist together and why it'…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

571 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question