Executing System File Checker in Windows OS
Executing System File Checker in Windows OS
Your Windows computer depends on operating system files to get the information it needs to run smoothly. But sometimes, these files can become corrupted or go missing from your PC, affecting your system negatively in various ways. For example, when something’s wrong with a critical system file, your computer might become slow or crash frequently.
An easy way to fix problematic system files is to use the System File Checker (SFC). This tool will scan your computer, check the integrity of each system file, and repair those that are damaged or missing.
Here’s what you need to know about running the SFC tool on Windows.
Disclaimer: This post includes affiliate links
If you click on a link and make a purchase, I may receive a commission at no extra cost to you.
How to Run a System File Checker Scan on Windows
To use the SFC, you need to run a single command in Command Prompt. Here’s how:
- PressWin + S to open Windows Search and typecommand prompt in the search box.
- This will bring upCommand Prompt in the search result. Click on theRun as administrator option.
- ClickYes in the UAC prompt to allow Command Prompt to make changes to your computer.
- In Command Prompt, enter the below command, and then hit theEnter key:
SFC /scannow
If you’re unfamiliar with operating system files, please read our guide onwhat system files are on Windows . And to learn everything you need to know about Command Prompt, you can check out ourbeginner’s guide to Command Prompt .
What Happens After I Run the System File Checker?
After the System File Checker completes its scan, it will display a message in the Command Prompt window with the results.
If your system files are okay, you’ll see a message that says “Windows Resource Protection did not find any integrity violations.” If SFC found and fixed all problematic files, the message will read “Windows Resource Protection found corrupt files and successfully repaired them.”
On the other hand, if it found corrupted files but couldn’t repair any or all of them, the message will read “Windows Resource Protection found corrupt files but was unable to fix some of them.” And if SFC encounters a problem, the message will say “Windows Resource Protection could not perform the requested operation.”
Other SFC Commands You Can Run on Windows
TheSFC /scannow isn’t the only System File Checker Command you can run. Here are a couple more and what they do:
SFC Command | Description |
---|---|
/verifyonly | Run this command if you want SFC to check for problematic operating system files without fixing them. |
/scanfile | Run this command if you want SFC to check a specific file for problems and fix it if it does have them. For example, Here’s the full command for checking and fixing theuser32.dll file:SFC /scanfile=c:\windows\system32\user32.dll |
/verifyfile | Run this command if you only want to check a particular system file for problems. Even if SFC finds an issue with the file, it will not repair it. For example, Here’s the full command for checking theuser32.dll file:SFC /verifyfile=c:\windows\system32\user32.dll |
/offbootdir | Run this command to tell the SFC which directory contains a bootable version of Windows. You need to do this every time you use the tool outside of Windows. For example, to select theE: drive on your PC, enter**/offbootdir=e:\** |
/offwindir | Run this command to tell the SFC which folder in the directory — the one you specified with theSFC /offbootdir command — contains Windows. For example, enter**/offwindir=e:\windows** to tell the System File Checker that Windows is on theE: drive. |
How to Run an Offline SFC Scan on Windows
There are a few scenarios that warrant the use of the SFC without logging into Windows. One such scenario is if the operating system files are so corrupted that Windows cannot start.
In that case, you can run SFC bycreating a bootable Windows disc or drive and using it to fix damaged system files. This is called an offline scan.
The important thing to remember about an offline scan is that you need to tell the SFC where to find Windows on the bootable drive. Here’s what a**/scannow** command would look like if you ran it offline:
SFC /scannow /offbootdir=d:\ /offwindir=d:\windows
That above command will tell SFC to look for Windows in theWindows folder on theD: drive. But keep in mind that the Windows version on the bootable media needs to be the same as the one installed on your PC for the scan and repair to be successful.
How to Find the SFC Log File On Windows
After the SFC does its thing, it will log the results of the scan and any repairs it made into a text file calledCBS.log . To open it, pressWin + R to open Windows Run, enter the below text, and clickOK :
%windir%\logs\cbs\cbs.log
The CBS.log file contains other logs besides those from the System File Checker. When looking through the entries, look for those that have an[SR] tag on them. Each entry will contain the date and time of the scan, along with the details of what happened.
If you don’t want to bother with searching through theCBS.log file for the entries with the[SR] tag, you can extract them to a file calledsfcdetails.txt . To do that, open Command Prompt as an administrator, and run the below command:
findstr /c:"[SR]" %windir%\logs\cbs\cbs.log >sfcdetails.txt
You can findsfcdetails.txt by heading toThis PC > Local Disk (C:) > Windows > System32 .
You’ll see that the log file contains entries from the System File Checker only.
If you’re doing an offline scan, you can enable logging by simply specifying the file path with the following command structure:
/offlogfile=[offline log file path]
Just replaceoffline log file path in the square brackets with the actual path you want to store the offline log file in the offline directory. Then, insert this entire command after the**/windir** command when running an offline SFC scan.
Running the System File Checker, Demystified
We have only just begun to scratch the surface of what you can do with the System File Checker on Windows 10 and 11. However, now that you knowhow to run SFC (both in and out of Windows), you can use the tool effectively to troubleshoot problems with operating system files.
Using the SFC effectively is a necessary skill for every Windows user, and it’s just one of the many tools you can use to fix problems on your Windows computer.
Also read:
- [New] In 2024, Fixed Shorts - No More Hidden Content
- [New] Optimal Tag Selection Elevate Your Video's Online Presence for 2024
- [New] Samsung Secrets Crafting Compelling Time Lapses for 2024
- [Updated] Instant Reddit Archives Retrieval with Ease
- [Updated] Streamlined Mac Package Audio + Video Capture
- 2024 Approved Master the Art of Garnering More Facebook Fans
- Download & Update NETGEAR Wireless Network Adapter Drivers - Free Latest Version
- Elevate Your Mobile Experience: Expert Opinions on the Samsung Galaxy Tab S4's Versatility and Performance
- iPogo will be the new iSpoofer On Nokia G310? | Dr.fone
- Navigating the Nooks of Windows Store: Avoiding Imposter Apps
- Resolving 'Unviewable' Error for Office 2016 Users on Windows PC
- Say Goodbye to Windows for Aging PCs
- Steps to Reactivate Frozen Lock Screen Countdown
- Strategies to Improve FPS & Reduce Latency in Roblox
- Unveiling the Procedure for Microsoft Store's MSIX Extensions
- Title: Executing System File Checker in Windows OS
- Author: Richard
- Created at : 2024-11-24 16:00:05
- Updated at : 2024-11-27 16:33:09
- Link: https://win11-tips.techidaily.com/executing-system-file-checker-in-windows-os/
- License: This work is licensed under CC BY-NC-SA 4.0.