Repair Windows 11 with Command Prompt (SFC, DISM, etc)  

Repair Windows 11 with Command Prompt (SFC, DISM, etc)


Find Windows 11 corrupted?

After six years since Windows 10 was first released, Windows 11 has finally arrived, bringing a new modern design, sounds, and features such as a centered Start menu, personalized Widgets, and optimized efficiency. However, some users have encountered errors, including app crashes, glitchy displays, and sudden black screens, with a small number getting stuck on Windows 11 startup. To resolve these issues, users need to find a solution.

Quick fix to Windows 11 problems

To fix a problem with a specific component or feature, you can use Windows troubleshooters to resolve the issue. Follow these steps:

1. Press the Win + I keys to open Settings.

2. In Windows Settings, click System > Troubleshoot > Other troubleshooters.

Other Troubleshooters

3. Select the component or feature you're experiencing issues with, and then click on the Run button to initiate the troubleshooter process. The troubleshooter will automatically detect and resolve any problems it identifies with the selected component or feature.

Run Troubleshooter

Advanced way to fix corrupted Windows 11

If your problems are concerning system files or Windows boot, you can resort to Command Prompt to repair it. To do this, open Command Prompt as an administrator, type "sfc /scannow" and press Enter to scan and replace corrupted system files. If the issue persists, type "dism /online /cleanup-image /restorehealth" and press Enter to repair Windows components.

How to open Command Prompt in Windows 11

Depending on whether you can boot into Windows 11 or not, you may need to launch Command Prompt in different ways, as the boot process can affect the availability of this feature.

▶ Situation 1: Windows 11 loads normally▶

To open Command Prompt, type "cmd" in the search box and select Command Prompt from the list, or right-click on Command Prompt and select Run as administrator to open an elevated version.

▶ Situation 2: Windows 11 fails to load▶

To access Command Prompt, you'll need to insert your Windows installation media, such as a USB drive or CD/DVD, and boot from it. Once you're in the installation menu, select your language preferences and click on "Repair your computer" instead of "Install now.

1. Boot your computer from Windows installation media.

2. When the Windows setup wizard appears, you can open Command Prompt by selecting the "Command Prompt" option from the list of setup options, or by pressing the Windows key + X and selecting Command Prompt from the menu, or by typing "cmd" in the Run dialog box, or by searching for Command Prompt in the Start menu. Alternatively, you can also open Command Prompt by right-clicking on the Start button, selecting "Command Prompt (Admin)" from the context menu, or by searching for Command Prompt in the search bar.

How to fix Windows 11 using Command Prompt🔥

To repair Windows 11, four different commands are available: SFC, DISM, bootrec.exe, and rstrui.exe. Depending on your specific situation, you can choose one of these methods to help resolve issues with your operating system. Each command serves a unique purpose, and selecting the correct one will ensure you get the desired results. By using the right tool for the job, you can efficiently troubleshoot and fix problems with your Windows 11 installation.

Method 1: Repair Windows 11 via SFC commands

The System File Checker (SFC) tool checks the integrity of protected system files and replaces any corrupted or missing files with correct versions from C:\Windows. To run SFC commands, follow these steps.

1. Open an elevated Command Prompt as mentioned in Part 2.

2. In the Command Prompt window, type sfc /scannow and press Enter.

SFC Command

3. Wait until the verification process reaches 100%. Exit Command Prompt to see if your problem is solved.

Method 2: Repair Windows 11 with DISM commands

DISM (Deployment Image Servicing and Management) is a command-line tool used to service Windows images, allowing you to install, uninstall, configure, and update features, packages, drivers, and international settings in a .wim file or VHD.

1. Open an elevated Command Prompt as described in Part 2.

2. To check the Windows 11 image for issues, you can use the following command: `dism /get-wiminfo /wimfile:C:\path\to\your\image.wim` and then `dism /checkhealth /wimfile:C:\path\to\your\image.

3. If there are problems detected, run the command DISM /Online /Cleanup-Image /RestoreHealth to repair the Windows 11 image.

DISM Command

Method 3: Fix Windows 11 boot issues using bootrec.exe

If you're experiencing boot issues with Windows 11, the bootrec.exe tool can usually help resolve the problem. To fix boot issues, follow these steps:

1. Open Command Prompt as mentioned in Part 2.

2. To reset the permissions of the System32 folder, open the Command Prompt as an administrator, navigate to the System32 folder using `cd C:\Windows\System32`, and then run the `icacls` command to view the current permissions. Next, run the `icacls` command with the `/reset` option to reset the permissions.

Bootrec Command

3. After the process is finished, exit the recovery screen and try booting into Windows again.

Method 4: Restore Windows 11 by running rstrui.exe

To restore Windows 11 to a previous working state using rstrui.exe, follow these steps:

Note: This method is only applicable on condition that you have created a restore point before.

1. Open Command Prompt as mentioned in Part 2.

2. Launch the System Restore wizard by typing `rstrui.exe` and pressing Enter.

Rstrui.exe

3. Follow the on-screen instructions to complete the system restore process.

System Restore Wizard

Backup Windows 11 in case of serious system errors🔥

To prepare for potential Windows 11 issues, it's a good idea to create a system image backup beforehand. This can be a lifesaver if your Windows 11 encounters problems, as it allows for efficient repair and recovery.

The easiest way to create backups for Windows 11 is by using Qiling Disk Master Standard, a free Windows 11 backup software that can help with this task.

◑ Qiling Backup offers various backup options, including system backup, disk backup, partition backup, and file backup, to cater to different user needs.
◑ The Schedule feature allows for automatic backups of changed data without requiring human intervention, ensuring that critical information is always up-to-date and readily available.
◑ This software enables users to save backup images to various locations, including external hard drives, USB flash drives, and network shares.
◑ This software is compatible with all Windows PC operating systems, including Windows 11, 10, 8.1, 8, 7, Vista, and XP, in both 32-bit and 64-bit versions.

Download Qiling Disk Master now to try it out. To create a Windows 11 system image backup, click Backup > System Backup, select a destination path, and click Proceed to start the process.

System Backup

Tip: For advanced users, you can upgrade to Qiling Disk Master Professional to perform backup/restore operations using Qiling command lines, or clone a hard drive via Command Prompt with the Pro edition.

Summary

You can use four different tools from the Command Prompt to repair Windows 11, including SFC, DISM, bootrec.exe, and rstrui.exe. To be prepared for potential system errors, consider creating backups of your Windows 11 system using Qiling Disk Master, which can also help you recover lost files and clone your SSD to a larger one. This way, you'll be able to easily restore your system and recover important files if anything goes wrong.

Related Articles


Is this information helpful?     

What can we do to improve this information? (Optional)
Refresh Please enter the verification code!


QilingTech uses cookies to ensure you get the best experience on our website.  Learn more  Got it