Sub topic 2
Repairing System Files and Managing Windows
Assume you know basic Windows administration, permissions, files, disks, and networking. Use administrator rights for repair and configuration commands. Test changes on a nonproduction system when possible.
Repairing system files with SFC and DISM
System File Checker (SFC) verifies protected Windows files and replaces damaged copies. Deployment Image Servicing and Management (DISM) repairs the Windows component store, which SFC uses as a repair source.
Run DISM first when corruption is suspected, then run SFC:
DISM /Online /Cleanup-Image /RestoreHealth
sfc /scannow/Online targets the running installation. /RestoreHealth checks and repairs the component store. SFC reports whether it repaired files, found corruption it could not fix, or found no integrity violations.
Policy and system commands
gpupdate /force reapplies computer and user Group Policy. gpresult /r reports the policies applied to the current user and computer. shutdown /r /t 60 schedules a restart after 60 seconds; shutdown /a cancels a pending shutdown. Run winver to display the Windows edition and build.
MMC and Computer Management
Microsoft Management Console (MMC) hosts administrative snap-ins. compmgmt.msc opens Computer Management, which groups Event Viewer, Device Manager, Disk Management, Services, and other tools. Use the console that matches the symptom rather than changing unrelated settings.
Task Manager
Task Manager shows processes, CPU, memory, disk, and network usage. Its Startup tab controls which applications launch at sign-in, and its Users tab shows logged-in users and their resource use. End a process only after confirming its name and impact.
Device Manager
Device Manager displays hardware and driver status. A warning icon commonly indicates a missing, disabled, or faulty driver. Check device properties and the error code before updating, rolling back, disabling, or uninstalling a driver.
Disk Management
Disk Management initializes new disks, creates or deletes partitions, formats volumes, and assigns drive letters. Initializing chooses a partition style, usually GPT on modern systems. Formatting creates a file system and can destroy data.
| Task | Main concern |
|---|---|
| Assign a drive letter | Avoid conflicts with existing mappings |
Exercise
Which tool should you use when Windows reports protected system files are corrupted?
Show answer
Run DISM to repair the component store, then run sfc /scannow to verify and repair protected files.