To repair Windows’ system files, use the DISM and SFC command line utilities. Here’s how:
Run the Command Prompt as Administrator.
Type DISM /Online /Cleanup-Image /RestoreHealth and press Enter.
Type sfc /scannow and press Enter.
You can also opt to use System Restore and roll back Windows to an earlier state.