Windows 10 is proven to be a highly reliable operating system, although that doesn't mean it's completely free of problems. It's also true that the system itself has good tools to fix errors. In this article we're going to see How to repair Windows 10 from CMD.
El Command Prompt (CMD) is the command line interface that allows us, through the execution of specific commands, to diagnose and solve many of the operating system's problems. Learning to use this tool can save us from many awkward situations.
Obviously, there are some cases where it will not be possible to review Windows 10 from CMD, but it will work when it comes to damage caused by acorrupted system files, boot problems, update failures, or hard drive errors. That is, in a high percentage of situations.
How to access CMD
At the time of repair Windows 10 With CMD we can find ourselves in two situations: the error may prevent us from using some of the operating system's functions or we may not even be able to start it. These are the ways to access the Command Prompt in each case:
If Windows can be started normally:
- We open the search bar with the shortcut Windows + S to open the search bar.
- Then we write "Cmd".
- On the Command Prompt icon, we right-click and select "Execute as an administrator".
If Windows does not start correctly:
- We restart the PC.
- Then, during startup, we repeatedly press the F8 key (or Shift + F8 on some computers).
- In the screen shown below, we select "Solve problems".
- Finally, we will "Advanced Options" and we select "Symbol of the system".
The best commands to repair Windows 10 from CMD
These are the essential commands that will best help us diagnose and repair the most common problems in Windows 10:
SFC (System File Checker)
The SFC command is used to analyze the status of system files. It also helps us repair them if they are damaged. Here's how it works:
- First, we open CMD as administrator.
- Then we write the command sfc / scannow and press Enter.
- Then we wait for the scanning process to finish, after which the following can occur:
- results:
- No integrity violations were found, That is, there are no problems with the system files.
- Corrupt files were found and repaired: A problem was detected and has been resolved.
- Some files could not be repairedIn this third case, you must try the following command, as explained below.
DISM (Deployment Image Servicing and Management)
The DISM command is used to repair the Windows image used by SFC, so it is useful to apply it when SFC has failed. Here are the steps to follow:
- We open CMD again.
- Then we execute the following command: dism / online / cleanup-image / scanhealth
- Next, we enter this command: dism / online / cleanup-image / restorehealth
Once this is done, all that remains is to wait for the process to finish, after which we can retry to run sfc / scannow.
BOOTREC
If the problem is located in the boot sector (this happens when it is impossible to start Windows), the command that will help us is BOOTREC. Another interesting alternative when it comes to repairing Windows 10 from CMD. This is what to do:
- In this case, we will have to access CMD from the Safe Mode.
- After We execute the following commands following the order in which we present them:
- bootrec / fixmbr
- bootrec / fixboot
- bootrec / scanos
- bootrec / RebuildBcd
- In conclusion, we reboot the system and we check that the startup problem has been solved.
CHKDSK (Check Disk)
This is one of the most useful repair commands in Command Prompt. CHKDSK scans the hard drive for errors and, if available, automatically repairs them. We can use it in the following way:
- To begin with, We open the CMD as administrator.
- Then we enter the following command: chkdsk C: / f / r, where each letter represents a certain value:
- C: is the name of the unit we want to analyze (can be changed).
- /f It is used to correct errors in the file system.
- /r It is used to locate bad sectors and recover information.
SYSTEMRESET
When we have tried everything and the problems persist, there is still a method to turn to to repair Windows 10 from CMD: restore the operating system to its initial settings. With this command we can do it easily and at the same time keep our personal files. The method is this:
- We start the CMD as administrator.
- Then we execute the following command: systemreset -cleanpc
- Finally, we follow the instructions that appear on the screen to restore Windows.
As we have seen, there are many commands that allow us to repair Windows 10 from CMD effectively. Of course, we must always keep in mind that it must always be used correctly, in order to avoid generating more problems while we try to solve them.
Editor specialized in technology and internet issues with more than ten years of experience in different digital media. I have worked as an editor and content creator for e-commerce, communication, online marketing and advertising companies. I have also written on economics, finance and other sectors websites. My work is also my passion. Now, through my articles in Tecnobits, I try to explore all the news and new opportunities that the world of technology offers us every day to improve our lives.