Step 1: Run DISM (Deployment Image Servicing and Management)
# check for corrupted files
dism /online /cleanup-image /scanhealth
# repair corrupted files
dism /online /cleanup-image /restorehealth
Step 2: Run SFC (System File Checker)
SFC /SCANNOW
# check for corrupted files
dism /online /cleanup-image /scanhealth
# repair corrupted files
dism /online /cleanup-image /restorehealth
SFC /SCANNOW