OS Repair Commands
OS Repair Commands
When you have problems with your computer, Windows system files may
become corrupted or go missing. This might be caused by sudden power
drops, hardware malfunctions, a hard disk or solid-state drive
approaching its end of life, and so on. If Windows reports that it can’t start
because some of its files are corrupted or missing, you should use the
System File Checker (SFC) tool in the Command Prompt. You should do the
same when Windows starts to blue screen on you with weird corruption
related errors. SFC scans all the Windows system files on your computer,
identifies those that are corrupt or missing, and tries to fix the problems it
finds. Here's how to use it:
Advertisement
UP
MENU
NOTE: This tutorial applies to both Windows 10 and Windows 11, and it
also works for older Microsoft operating systems such as Windows 7.
What you’re basically telling Windows to do when you run the SFC
command with the parameters we’ve shown you is: scan the Windows
folder located on the boot partition C: and fix any missing or corrupt
system files encountered. Unless you’re using a fast SSD as your boot
drive, now would be a good time for you to arm yourself with some
patience. That’s because running the SFC command will take quite a bit of
time.
UP
MENU
When the process finishes, you are notified whether issues have been
found and resolved or not. For example, if everything is fine with your
system files, you will receive a message saying that “Windows Resource
Protection did not find any integrity violations.” Or, if problems were found
and repaired, System File Checker will tell you that “Windows Resource
Protection found corrupt files and successfully repaired them.”
UP
The system file check finished and no broken files were found
If there are problematic files that can’t be fixed, they are always
MENU
mentioned in a log file named CBS.log. This file is found in the Windows
folder at this exact location:
C:\Windows\Logs\CBS\CBS.log
Skip to the last chapter in this guide to see how to identify the corrupt or
missing files that couldn’t be repaired.
Advertisement
sfc /scannow
UP
… and press Enter.
MENU
The /scannow parameter forces the SFC tool to check the integrity of all
system files and attempt to repair any broken or missing files, if possible.
Again, unless you have a fast SSD in your computer, arm yourself with
some patience. The SFC tool can take a long time to run (at least a couple
of minutes). When it's done, you’ll see a Verification 100% complete
message in the Command Prompt window. If any problems were found
during the scan, you are also informed. In our case, SFC found a couple of
corrupt files but was able to fix them all.
UP
MENU
System File Checker logs any broken files that can’t be fixed in a file called
CBS.log. You’ll find it at this path on your Windows PC:
C:\Windows\Logs\CBS\CBS.log
Read the next section of this guide to see how to identify the system files
that couldn’t be repaired.
Advertisement
UP
How to analyze the SFC log file (CBS.log)
MENU
Open File Explorer and use it to navigate to the C:\Windows\Logs\CBS
folder. Then, double-click or double-tap on the CBS.log file to open it in
your default text editor app. By default, that should be Notepad.
Results of the SFC CMD command are stored in the CBS log file
Then, either scroll down to the end of the file or use the search function in
your text editor to look for any entries that begin with the text:
Those lines of text will tell you which are the missing or corrupted system
files that SFC couldn’t repair. Then, one of the best things you can do is
use your favorite web browser and search engine to look for information
UP
online about the files mentioned in the CBS.log file. Hopefully, you’ll get
MENU
some ideas on how to fix them.
TIP: You may also want to know how to repair the EFI Bootloader or the
MBR (Master Boot Record) for Windows.
SUBSCRIBE
Subscribe:
UP
RELATED ARTICLES
MENU
UP
MENU
Advertisement
UP
MENU
POPULAR ARTICLES
Do you have a new Windows 11 PC, or did you just install the operating system
yourself? You may need to share your computer with others, so you must add a new
user to Windows 11. If that’s the case,...
Clock app brings several improvements and the Focus sessions to help you
concentrate...
We all encountered files with uncommon extensions from time to time. Of course,
many of us know about .docx files, .pdf files, .mp3 files, or .iso files. However, have
you heard about the .eps file extension? How about .dng or...
Advertisement
UP
POPULAR REVIEWS
MENU
The latest generations of both Intel and AMD desktop processors can take
advantage of faster DDR5 memory. While the prices of such memory kits are still
quite prohibitive, the performance you get from them is undeniable. And, sooner or
later,...
ASUS ROG Ryuo III 240 ARGB review: Efficient AIO liquid cooler!
REVIEW Codrut Neagu 05.01.2023
UP
On October 21st, 2022, ASUS announced the launch of a new series of CPU liquid
coolers, namely the ROG Ryuo III 360 and 240 ARGB AIO coolers. Both models are
MENU
The choices available for professionals in terms of monitors these days are plenty.
Every monitor manufacturer seems to go out of its way to make the best screen
possible, with as many bundled features. ViewSonic is one of them, and...
SEARCH
SUBSCRIBE
UP
CATEGORIES
MENU
PRODUCTIVITY
ENTERTAINMENT
SECURITY
SMARTPHONE
SMARTHOME
HEALTH
OTHER
SUBSCRIBE
ABOUT US
NEWSLETTER
TERMS
COOKIES
CONTACT US
Advertisement
UP