Written By Ashish Sharma Oct 17, 2022

Categories: Windows File System , System File Checker, Windows OS Deployment Image Cleanup and Restore.

Summary

System file check is a utility built into the Operating System that will check for system file corruption. The sfc /scannow command (System File Check) scans the integrity of all protected operating system files and replaces incorrect, corrupted, changed, or damaged versions with the correct versions where possible. When it cannot repair the damage, then DISM (Deployment Image Servicing and Management) should be run to fix as many errors as possible.

To run a system file check (SFC)

When you have finished it will say one of three things

If you get this message run DISM as shown as below:-

sfc1

If SFC was not able to repair some or all of the files there are a few options including a repair install from the OS dvd, and DISM. And If SFC did not find any violations it is still a good idea to run DISM Restorehealth to check, scan and restore the health to fix the issue. By using DISM you can run Check, then Scan, but you should always run RESTORE HEALTH at the end to fix the issue.

To check the health (You would use /CheckHealth to only check whether the image has been flagged as corrupted)

To scan the health use /ScanHealth to scan the image for component store corruption. This option does not fix any corruption.

You can run scanhealth & restore health at the same time like shown in below:-

dism1

About the Author

ashtechiefinallogo

I`m Ashish Sharma who brings 24+ Years of Mix & Match Experience of Designing and Architecting Wintel, VMware DCV/NSX/vRO/vRA/vRops, Azure Cloud, Microsoft Cybersecurity, Azure DevOps, AWS, and Google Cloud Solutions offerings.

I am an Expert of Infrastructure as Code using Terraform, Code as Infrastructure (Reverse Terraforming), ARM, Azure Bicep, JSON, AWS CloudFormation, Automation using GitHub Actions, YAML, Jenkins, PowerShell, Azure PowerShell, Configuration Management using Ansible etc. I have very good understanding of Microservices, Containerization aka Open-Source Kubernetes, Docker, Tanzu Grid Cluster and have good knowledge of Scrum, Kanban and other Agile and Project Management tools and methodologies like Microsoft Projects & Jira etc. I am currently exploring “Artificial Intelligence for IT Operations (AIOps)”, specifically Moogsoft.

I do have sound knowledge of Cisco InterSight along with Cisco UCS, Hyperflex, Dell EMC VXRail and other Hyperconverged, Converged & Bare Metal Server Hardware. I have major expertise in Solution Designing of Datacenter and Network Virtualization using VMware vSphere, On-Premises to On-Premises and On-Premises to Cloud Migration & Transformation, Automated & Scripted Migration. I have also taken care of a variety of Greenfield and Brownfield Infrastructure Design, Management, and Security Compliance requirements.

Contact me

⌨️ GitHub / LinkedIn / Website / Twitter / Instagram


<
Previous Post
Google Cloud VMware Engine: What’s New in August 2022
>
Next Post
Gain a Global Reach by Taking the Azure ExpressRoute