Windows System Repair with SFC and DISM

Use System File Checker and DISM to repair corrupted Windows installations

进阶更新于 2026-01-1517,243 阅读4 分钟阅读
SFCDISMrepaircorruptedsystem-files

Introduction

This comprehensive guide covers everything you need to know about windows system repair with sfc and dism. Whether you're a beginner or experienced user, follow along step by step for the best results.

Prerequisites

Before you begin, make sure you have:

  • A stable internet connection
  • Sufficient storage space
  • Backup of important data
  • Administrator/root access (if required)

Step-by-Step Guide

Step 1: Run SFC

System File Checker scans and repairs protected system files.

bash
# Run as Administrator sfc /scannow # Check results in log: findstr /c:"[SR]" %windir%\Logs\CBS\CBS.log > sfclog.txt

Step 2: Run DISM

DISM repairs the component store if SFC fails.

bash
DISM /Online /Cleanup-Image /CheckHealth DISM /Online /Cleanup-Image /ScanHealth DISM /Online /Cleanup-Image /RestoreHealth

Step 3: Windows Reset

If SFC/DISM fail, use Reset this PC as last resort.

bash
systemreset -cleanpc

Troubleshooting

Common Issues

  • Process fails or freezes: Restart and try again. Ensure all prerequisites are met.
  • Insufficient permissions: Run with administrator/root privileges.
  • Compatibility issues: Check the system requirements and supported versions.
  • Network errors: Verify your internet connection and try again.

FAQ

Is this process reversible?

In most cases, you can revert changes by restoring from a backup. Always create backups before making major changes.

How long does this take?

The process typically takes 15-60 minutes depending on your hardware and internet speed.

Do I need special tools?

All required tools are listed in the prerequisites section above. Most are free and open source.

标签:SFCDISMrepaircorruptedsystem-files