How to fix Windows file system errors with a single command

When you install Windows on your computer, it will put a lot of important files into your system that you may not know or use. Usually, you do not need to bother with this, however, when these files are inactive or corrupted, it will cause many problems. Blue screens, strange error messages and all these consequences can be caused by faulty Windows system files.

  1. 5 default Windows files and folders should not be touched

How to fix Windows file system errors with a single command Picture 1

However, a Windows built-in tool called System File Checker (SFC) will automatically scan and fix broken Windows files. To use this tool, open Admin Command Prompt by typing cmd into the Start menu, then right-click on it and select Run as Administrator . Type the command below to run SFC:

sfc / scannow

Note: This process may take a bit of your time so be patient. If your computer is badly damaged and cannot run the command normally, you have two alternatives.

First, open Command Promt from the Advanced Startup Options menu. Go to Settings> Update & security> Recovery and click Restart Now to reboot into Recovery Mode. In this menu, select T roubleshoot> Advanced Options> Command Prompt and type the command as above.

If that doesn't work, you can use this method: Get the hard drive from the computer that has the problem and connect it to another Windows-based computer. Open Command Prompt as above, then use the modified SFC command below to scan the external drive instead of the computer's internal drive that is not affected:

sfc / scannow / OFFBOOTDIR = d: / OFFWINDIR = d: windows

Before doing this, open This PC by pressing the Windows + E key and confirm which drive the drive is in. Replace d in the above command with your drive letter for accurate scanning. Wait for a while and the command line gives the notification result.

By using a Windows drive, you can also go to Command Prompt and use this modified command to scan a drive in with SFC.

Have you ever used SFC? Does this utility troubleshoot your computer? If you have any ideas, please let us know!

5 ★ | 1 Vote

May be interested

  • The convert in Windows commandThe convert in Windows command
    the convert command converts file allocation table (fat) and fat32 to the ntfs file system, keeping existing files and folders intact. the drives that have been converted to ntfs file systems cannot be converted to fat or fat32 anymore.
  • Ftype command in WindowsFtype command in Windows
    the ftype command displays or modifies the file types used in file name extension links. if used without the assignment operator (=), the ftype command will display the current string of open commands for the specified file type.
  • Fsutil command sparse in WindowsFsutil command sparse in Windows
    the fsutil sparse command manages sparse files (a sparse file is a type of computer file that tries to use system space more efficiently when the file is partially empty).
  • The bootcfg raw command in WindowsThe bootcfg raw command in Windows
    the bootcfg raw command adds the option to load the operating system as a string to the operating system entry in the [operating systems] section of the boot.ini file.
  • The chkntfs command in WindowsThe chkntfs command in Windows
    the chkntfs command displays or modifies the automatic disk check when the computer starts. if used without options, the chkntfs command will display the file system of the specified drive.
  • Mapadmin command in WindowsMapadmin command in Windows
    you can use the mapadmin command to manage the username mapping for microsoft services for the network file system.
  • The nfsshare command in windowsThe nfsshare command in windows
    you can use the nfsshare command to control the shares on the network file system (nfs).
  • Fsutil command in WindowsFsutil command in Windows
    the fsutil command performs tasks related to file allocation table (fat) and ntfs file systems, such as managing reparse points, managing sparse files, or canceling a drive mount.
  • The autochk command in WindowsThe autochk command in Windows
    the autochk command runs when the computer is started and before windows server 2008 r2 starts verifying the logical integrity of a file system.
  • Setlocal command in WindowsSetlocal command in Windows
    the setlocal command helps start the process of differentiating environment variables in a batch file. this process will continue until paired with the appropriate endlocal command or the batch file end.