Windows is slow and crashes sometimes. Guides tell me to run chkdsk, sfc /scannow and DISM. What does each one do and in what order?
They fix different things.
CHKDSK checks the file system and the disk for errors (chkdsk C: /f). Run it when you see file or drive problems. It can only repair what it can, and on a failing drive it may even make things worse, so make a backup first.
SFC checks and repairs protected Windows system files (sfc /scannow). Run it when Windows features or apps misbehave.
DISM repairs the Windows component store that SFC uses as its source (DISM /Online /Cleanup-Image /RestoreHealth). Run it when SFC reports that it can not repair files.
A sensible order: DISM first, then SFC, then CHKDSK if you suspect a disk problem. Use an administrator Command Prompt for all three. For a clicking or very slow drive, copy data off before running CHKDSK.
DISM then SFC fixed the crashes. Thanks for explaining the order.