To check system hard drive and fix errors:
chkdsk c: /f
To check system hard drive, fix errors, locate and mark bad sectors:
chkdsk c: /r
Very basic command to check integrity of system files:
If sfc can’t help you try DISM.
Check system health for any corruption presence:
Dism /Online /Cleanup-Image /CheckHealth
Check system health for store corruption presence:
Dism /Online /Cleanup-Image /ScanHealth
Finally, repair command:
Dism /Online /Cleanup-Image /RestoreHealth
PS If i recall something that i’ve missed, will post it as an update later on.