There are various factors that make the behavior of Windows unstable, but if it is caused by a system file, symptoms may be improved by using the recovery tool provided by the OS standard. Here we will introduce two tools, "Dism.exe" and "System File Checker (SFC.exe)".
Dism.exe is a tool to check whether the Windows system file is damaged. If the system file is corrupted, you can repair the damaged file from Windows Update or OS install resource.
SFC.exe is a tool for checking whether the system file has been rewritten. When installing old software, the OS system file may be overwritten and the operation of Windows may become unstable. "SFC.exe" checks the integrity of the system file and restores the file if there is a problem.
Firstly use Dism.exe to repair damaged system files, then use SFC.exe to check file consistency. Both tools are done from a command prompt or Windows PowerShell.
① Right-click the button and select Command Prompt (Administrator).For Creators Update, please click Windows PowerShell (Administrator).
② If you are prompted for an administrator password or confirmation, enter the password or click Allow or Yes.
③ Type the following command and press Enter.(It might take several minutes for the command operation to be completed.)
DISM.exe /Online /Cleanup-image /Restorehealth
④ Type sfc /scannow and press Enter.(If "Another servicing or repair operation is currently running" is displayed, please wait for a while and try again.)
⑤ The operation is completed when the following completion message is displayed.（It might take several minutes for the command operation to be completed.）。Please restart your computer and check whether it works normally.
Dism.exe uses Windows Update to repair system files. If you have any problems with the offline environment or the Windows Update client, you can repair the system file as a resource such as Windows 10 installation media. To do this, enter the following command instead:
DISM.exe /Online /Cleanup-Image /RestoreHealth /Source:C:\RepairSource /LimitAccess