Sub topic 2
Repairing Windows System Files and Disks
Assume you know basic Windows navigation, Command Prompt, PC hardware, BIOS/UEFI, and file systems. Use an elevated prompt, which runs with administrator rights, for most repair commands.
SFC, DISM, and CHKDSK
DISM repairs the Windows component store, the source used to restore protected files. SFC checks protected system files and replaces damaged copies. Run DISM first, then SFC. CHKDSK checks the file system and disk sectors.
DISM /Online /Cleanup-Image /RestoreHealth
sfc /scannow
chkdsk C: /f /r/Online targets the running Windows installation. /f fixes file-system errors. /r searches for bad sectors and recovers readable data. CHKDSK may schedule itself for the next restart when checking the system volume.
| Symptom | Useful tool | Main purpose |
|---|---|---|
| Damaged Windows files | DISM, then SFC | Repair the Windows image and protected files |
| File-system errors | CHKDSK `/f` | Correct logical disk errors |
| Suspected bad sectors | CHKDSK `/r` | Find sectors and recover readable data |
> callout warning > Back up important data before disk repair. A failing drive can worsen during intensive scanning.
Stop Errors and Driver Problems
A stop error, commonly called a BSOD, is a Windows crash that protects the system from further damage. Record the stop code, recent changes, and any named driver. Undo a recent driver or update, test hardware, and check Event Viewer or dump files.
A device may show a USB resource warning when its controller or another device cannot obtain required resources. Try another port, remove unnecessary USB devices, update the chipset or USB driver, and check Device Manager for conflicts. Do not assume the USB device itself is defective.
Services, Memory, and Performance
A service is a background program managed by Windows. In services.msc, verify its startup type, dependencies, account permissions, and error message. Too many automatic services can slow startup, so change settings only when you know the service's role.
Low-memory warnings can result from too many programs, a memory leak, insufficient RAM, or an incorrectly configured page file, which is disk space Windows uses as virtual memory. Task Manager shows memory use. Resource Monitor helps identify the process consuming it. Keep virtual memory system-managed unless a specific requirement justifies a change.
For degraded performance, establish a baseline, identify the saturated resource, and change one variable at a time.
Exercise
A system is slow after an update and then crashes with a named driver. What should you investigate first?
Show answer
Check the stop code and driver, then roll back or update that driver and verify the result before changing unrelated settings.