Open a command prompt (search cmd and right click) with administrator privileges. Click Yes if you are prompted to run the program by the User Account Control.
Type sfc /scannow and press enter. It will take 5-10 minutes to process.
Success! One of three outcomes. 1) No issues, 2) There were issues and were fixed and 3) you have issues.
We will need to use DISM (Deployment Image Servicing and Management) to check the health of the image when sfc fails.
Type Dism /Online /Cleanup-Image /CheckHealth and press enter.
The command checks for corruption in the image but does not repair the issues. We will scan the health next.
Type Dism /Online /Cleanup-Image /ScanHealth and press enter. This will take about 10 minutes to complete.
The command checks for corruption in the component store but does not repair the issues. We will start the component clean up.
Type Dism /Online /Cleanup-Image /StartComponentCleanup
The command will clean up windows component store. We will now run a command that should fix any issues.
Type Dism /Online /Cleanup-Image /RestoreHealth and press enter.
The scan might take some time to complete if there are any issues and it will try to fix them automatically.
If there is corruption found then windows update will be used by default.
What if I still have issues?
It could be drivers or hardware. Hardware is the physical component while drivers connect hardware to software.