Run the SFC command when troubleshooting a buggy Windows system. Run the SFC Command to Repair System Files
On Windows 7 and earlier, Microsoft offered a downloadable 'System Update Readiness Tool' instead.
If the SFC command doesn't work, you can also try the Deployment Image Servicing and Management (DISM) command on Windows 8, 10, or 11 to repair the underlying Windows system image. If a file has been modified, it will automatically replace that file with the correct version. The System File Checker (SFC) tool built into Windows will scan your Windows system files for corruption or any other changes. If Windows is experiencing blue-screen or other crashes, applications are failing, or some Windows features just aren't working properly, there are two system tools that might be able to help. The System File Checker tool built into Windows can scan your Windows system files for corruption or any other changes.