Go Premium for a chance to win a PS4. Enter to Win


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 99

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 57

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 99

Expert Comment

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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Microsoft has changed the look and feel of Azure AD and Microsoft account sign-in pages so that you will have a more unified look and feel when moving between the two interfaces.
It is a real story and is one of my scariest tech experiences. Most users think that IT experts like us know how to fix all computer problems. However, if there is a time constraint and you MUST not fail the task or you will lose your job, a simple …
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

972 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