How to repair Windows 10 from CMD?

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:

  1. We open the search bar with the shortcut Windows + S to open the search bar.
  2. Then we write "Cmd".
  3. On the Command Prompt icon, we right-click and select "Execute as an administrator".
Exclusive content - Click Here  How to backup OneNote for Windows 10

If Windows does not start correctly:

  1. We restart the PC.
  2. Then, during startup, we repeatedly press the F8 key (or Shift + F8 on some computers).
  3. In the screen shown below, we select "Solve problems".
  4. 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)

repair windows 10 from cmd

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:

  1. First, we open CMD as administrator.
  2. Then we write the command sfc / scannow and press Enter.
  3. Then we wait for the scanning process to finish, after which the following can occur:
  4. 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.
Exclusive content - Click Here  How can you play Fortnite on iPhone

DISM (Deployment Image Servicing and Management)

DISM

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:

  1. We open CMD again.
  2. Then we execute the following command: dism / online / cleanup-image / scanhealth
  3. 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

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:

  1. In this case, we will have to access CMD from the Safe Mode.
  2. After We execute the following commands following the order in which we present them:
    • bootrec / fixmbr
    • bootrec / fixboot
    • bootrec / scanos
    • bootrec / RebuildBcd
  3. In conclusion, we reboot the system and we check that the startup problem has been solved.

CHKDSK (Check Disk)

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:

  1. To begin with, We open the CMD as administrator.
  2. 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.
Exclusive content - Click Here  How to link Fortnite to Twitch:

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:

  1. We start the CMD as administrator.
  2. Then we execute the following command: systemreset -cleanpc
  3. 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.

Leave a comment