computer Operating systems windows

How do you repair Windows OS if it contains corrupted files or unknown issues? (two ways)

Over time, you may encounter unknown issues or missing DLL files while using Windows OS. Fortunately, there are some quick and easy solutions that can help.

Last Updated, 1 year ago by Hamad Al Qassar

Estimated article reading time: 2 minutes

To get started, we’ll use the “SFC” command. This command will prompt Windows to search online for and fix any problems if necessary.

How to Get Started with the SFC Command

To start, open the Run dialog by pressing the Windows key and “R”, and type “CMD”.

Then, press “Control + Shift + Enter” to open the CMD window as an administrator.

Copy the command below and paste it into the CMD window. Then, press “Enter”.

[copy text=”click here to copy the command above. ” content=”sfc /SCANNOW”]

When the command finishes, a message will be displayed letting you know if anything was damaged and fixed.

Success Message

Windows Resource Protection found corrupt files and successfully repaired them. For online repairs, details are included in the CBS log file located at windir\Logs\CBS\CBS.log. For example C:\Windows\Logs\CBS\CBS.log. For offline repairs, details are included in the log file provided by the /OFFLOGFILE flag.

A message means everything is going well in your computer

Windows Resource Protection did not find any integrity violations.

Another Command to Fix Problems

If the SFC command did not fix the issue, you can try running the DISM command. This command can help repair the Windows image and fix any issues that may be causing problems.

Copy the command below and paste it into the CMD window. Then, press “Enter”.

DISM /Online /Cleanup-Image /CheckHealth
DISM /Online /Cleanup-Image /RestoreHealth

If your device is in good condition, you will see the following message:

No component store corruption detected. The operation completed successfully.

Using these two commands can help fix many common issues that you may encounter while using Windows. Keep in mind that some issues may require more advanced troubleshooting or the assistance of a professional.

Was this helpful?

By Hamad Al Qassar

an audio games developer (using Python)
Buy Me A Coffee!
donate via paypal

Leave a Reply

Your email address will not be published. Required fields are marked *