How to Run SFC /SCANNOW Command in Windows 11

Windows Love
Windows Love
4.1 هزار بار بازدید - 3 سال پیش - On Windows 11, when you
On Windows 11, when you start noticing random errors, problems booting up, or features not working as expected, there's a good chance that one or multiple system files might have gone missing or corrupted for unknown reasons. Usually, problems with system files could occur as a result of an issue installing a system update, driver, or application, or while making changes to the installation manually.

If you happen to come across this issue, you can use the Windows 11 System File Checker (SFC), which is a command-line tool designed to scan the integrity and restore missing or corrupted system files with working replacements.

To repair a Windows 11 installation using the SFC command tool, use these steps:
1. Open Start.
2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.
3. Type the following command to repair system files and press Enter: sfc /scannow
4. Confirm result:
● Windows Resource Protection did not find any integrity violations – indicates that the system doesn't have any missing or corrupted files.
● Windows Resource Protection could not perform the requested operation – indicates that a problem was detected during the scan, and an offline scan is required.
● Windows Resource Protection found corrupt files and successfully repaired them. Details are included in the CBS.Log %WinDir%\Logs\CBS\CBS.log – indicates that SFC detected and was able to fix the problem.
● Windows Resource Protection found corrupt files but was unable to fix some of them. Details are included in the CBS.Log %WinDir%\Logs\CBS\CBS.log – indicates that you have to repair the corrupted files manually.

Once you complete the steps, the System File Checker command will scan, detect, and try to fix problems with system files on Windows 11.

If the tool has detected an issue, it's recommended to run the command at least three times to ensure that all the problems have been corrected.

In the case that you're having other problems using the SFC tool, then use this guide to use the Deployment Image Servicing and Management (DISM) tool to repair the local Windows 11 image to allow the System File Checker to complete successfully.

VIEWING SFC SCAN LOGS
To view the details stored in the CBS.Log file from an SFC scan, use these steps:
1. Open Start.
2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.
3. Type the command (you'll find it in a comment section below) and then click Enter.
4. Check the Windows 11 desktop for a "sfclogs.txt" file.
5. Double-click the sfclogs.txt file to open it with the default text editor app.

After you complete the steps, the log file will reveal all the details of the scanned system files and information for files that couldn't be repaired. (This option is only available when performing a scan within Windows 11, not when performing an offline scan with Command Prompt.)

REPAIRING SYSTEM FILES MANUALLY (WITH EXAMPLE COMMANDS)
To repair damaged system files in Windows 11 manually, use these steps:

IMPORTANT: You may be able to find good working files to replace in your installation from another device running the exact edition and version of Windows 11. If you don't know the location of the damaged file, you may need to perform an online search with the information you obtained from the SFC log file.

1. Open Start.
2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.
3. Type the following command to take ownership of the corrupted files and press Enter: takeown /f C:\PATH\TO\FILE
4. In the command, make sure to update the command with the path to the file that you're trying to fix.
5. In this example, the command takes ownership of the "ActionCenter.dll" file: takeown /f C:\Windows\System32\ActionCenter.dll
6. Type the following command to grant full administrator access to the corrupted file and press Enter: icacls C:\PATH\TO\FILE /Grant Administrators:F
7. In the command, make sure to update the command with the path to the file that you're trying to fix.
In this example, the command grants access to the "ActionCenter.dll" file:
icacls C:\Windows\System32\ActionCenter.dll /Grant Administrators:F
8. Type the following command to replace the corrupted files with a good-known version and press Enter: copy C:\PATH\TO\SOURCE\GOOD\FILE C:\PATH\TO\DESTINATION\BROKEN\FILE
In the command, make sure to update the command with the source and destination paths to replace the corrupted file.
9. In this example, the command replaces the "ActionCenter.dll" file in the System32 folder: copy C:\Files\ActionCenter.dll C:\Windows\System32\ActionCenter.dll
11. Type the following command to verify the integrity of the system files and press Enter: sfc /verifyonly

➤ MORE INFORMATION & RESOURCES:
https://www.windowscentral.com/how-us...
3 سال پیش در تاریخ 1400/05/06 منتشر شده است.
4,140 بـار بازدید شده
... بیشتر