Here are some useful commands to check windows system integrity. First of all, launch a command prompt with privileged permissions:
- Click Start
- Type cmd
- Right click on “cmd” and
- Select “Run as Administrator”
First of all, lets run System File Checker:
sfc /scannow
Next lets run Deployment Image Servicing and Management tool. Let’s check first:
Dism /Online /Cleanup-Image /CheckHealth
Dism /Online /Cleanup-Image /ScanHealth
Next commands are for repairing. If you have your installation ESD or WIM file – that’s even better. Here’s how you can check and restore from ESD and WIM images accordingly:
Dism /Online /Cleanup-Image /RestoreHealth /Source:esd:D:\install.esd:1
Dism /Online /Cleanup-Image /RestoreHealth /Source:wim:D:\install.wim:1
To prevent DISM from using Windows Update for online images, you can run these (ESD and WIM):
Dism /Online /Cleanup-Image /RestoreHealth /Source:esd:D:\install.esd:1 /LimitAccess
Dism /Online /Cleanup-Image /RestoreHealth /Source:wim:D:\install.wim:1 /LimitAccess
That’s it for now.