Skip to content

3 Helpful Commands to Fix Windows 11

If your Windows starts to crash a lot, you can try the following 3 commands to fix some common problem sources. The commands may take a while to run, but if they work, you save yourself a fresh installation of Windows.

Check and fix the file system

Open the Terminal or CMD as an administrator and run the chkdsk tool to check the hard disk (or SSD). With the /fparameter we can tell the tool to fix the disk should it find something is broken:

chkdsk /f

It may require a reboot to run the tool on the next startup. On my SSD this command was fast, but even when it runs for a while, try to let it finish.

Get a fresh set of system files

If Murphy got a field day and destroyed your system recovery files, you have a problem. Luckily for us, this happens so often that Microsoft offers a tool to fix the system recovery files called dism.

We can run dism with a few options to check online for the correct system files and let it restore them in the recovery part of Windows:

dism /online /cleanup-image /restorehealth

Fix corrupted system files

With the tool sfc we can fix corrupted system files:

sfc /scannow

It may look as it is stuck halfway in the check but give it some time to complete the task. At the end it shows you a log file where you can check if there were files that needed to be repaired. In my case I got these files fixed:

2026-02-21 18:09:33, Info  DEPLOY [Pnp] Corrupt file: C:\WINDOWS\System32\drivers\BthA2dp.sys
2026-02-21 18:09:33, Info  DEPLOY [Pnp] Repaired file: C:\WINDOWS\System32\drivers\BthA2dp.sys
2026-02-21 18:09:33, Info  DEPLOY [Pnp] Corrupt file: C:\WINDOWS\System32\drivers\BthHfEnum.sys
2026-02-21 18:09:33, Info  DEPLOY [Pnp] Repaired file: C:\WINDOWS\System32\drivers\BthHfEnum.sys
2026-02-21 18:09:33, Info  DEPLOY [Pnp] Corrupt file: C:\WINDOWS\System32\drivers\bthmodem.sys
2026-02-21 18:09:33, Info  DEPLOY [Pnp] Repaired file: C:\WINDOWS\System32\drivers\bthmodem.sys

Conclusion

The 3 commands allowed me to fix a few corrupt system files and check the disk of my computer. Most of the problems with my machine disappeared after I run those tools. Give it a try should your Windows installation act up. It may postpone a reinstallation for a few months or even longer.