This article explains how to use the sfc /scannow command to repair Windows system files. The instructions apply to Windows 11, Windows 10, Windows 8, Windows 7, and Windows Vista.
To repair Windows system files using sfc /scannow, follow these steps:
Open the command prompt as administrator, also known as an elevated command prompt.
Type the following command and press Enter.