These commands fix most Windows errors

Computer science is something very complex, and therefore, when something goes wrong and we must find out what it is, there are times when things get very complicated. However, many of the errors and problems that we can face in Windows are usually related, and that is due to the lack of some vital files of the system, or to a library or a damaged system file. And many times, after spending hours trying to find the cause, these problems could have been solved simply with a series of commands.

If the files of a program (for example, Photoshop) are damaged, this only affects that program. Or at most, it would affect all Adobe programs, but nothing more. The same happens if a library of any game or any other program is damaged. However, when what is damaged is a file or a Windows library, the thing changes.

A corrupt system file can cause any program to fail to run, our computer does not work as it should, and even the entire system to stop working, hang or restart. And we will often try to look for the reason for these problems, when the solution is more than easy, fast and obvious: check the integrity of the system.cmd-commands-t

Commands to repair Windows 10

Windows has a series of tools designed to allow us to verify the integrity of our operating system (that is, everything works properly) and, if not, apply the necessary solutions.

These commands are part of the operating system, we do not need to install anything. To make use of them, it is enough to have administrator permissions on the computer we want to repair, nothing more.

How to check the integrity of Windows

In order to analyze our system and verify that everything works correctly, what we must do is open a CMD window, with Administrator permissions, and execute, in order, the following commands:

  • sfc / scannow
  • DISM / Online / Cleanup-Image / CheckHealth
  • DISM / Online / Cleanup-Image / ScanHealth
  • DISM / Online / Cleanup-Image / RestoreHealth

SFC Scannow

The SFC (System File Checker) command is responsible for checking all system files to see if any are missing, for any reason, or if they are damaged. On the other hand, the DISM (Deployment Image Servicing and Management) command is another tool designed to perform automatic PC maintenance. Also widely used to detect and repair corrupt files.

When executing these commands, it will be the operating system itself that analyzes itself and, in case of detecting any possible error, will apply the necessary solutions.

How to automate the process

We can manually execute these commands from a CMD window with Administrator permissions. However, it is also very easy to create our own script to perform this maintenance. For this we have only to open a notebook and paste in it the 3 previous commands, each one in a line.

Automatizar scripts mantenimiento PC

We will save the file with the extension .bat and that’s it. Now, when we want to analyze our PC, we simply have to run this script with Administrator permissions. He will take care of the rest.

Other tricks that can help solve problems in Windows 10

In addition to these commands, we will also recommend other tricks that can help solve all kinds of problems with the operating system.

Restart from time to time . With Windows 10, it is not the same to turn off and on the computer to restart. Due to the Fast Startup, or Quick Start, when we turn off the PC it enters a suspended state, and when it is turned on it is reactivated. Restarting Windows means ending everything and starting the system from scratch. It takes longer, but it helps everything work better.

Reinstall programs that malfunction . The commands we have seen in this article only serve to verify the integrity of Windows. But not from other programs. Therefore, if the program that is not working is one of third parties, such as Adobe or Chrome, it is best to reinstall the program. In the process, the dependencies and all the files will be copied again, solving possible problems that may exist.

Formatting Windows is the ultimate solution . It may be that our Windows needs a thorough cleaning. There are a number of symptoms that indicate that it is time to format . In case of experiencing them, the best we can do is to think about formatting the computer, taking advantage of the process, in addition, to install the latest version of Windows and all the new drivers for our computer.

With these tricks, we can be sure that our Windows 10 always works perfectly.