Skip to content
Follow
Windows 🟡 Intermediate

Every Windows 11 Recovery Mode Command Prompt Command You Need

Richard
Written by
Richard
Aug 23, 2026 7 min read
Every Windows 11 recovery mode command prompt command you need
Every Windows 11 recovery mode command prompt command you need

Windows 11 Recovery Mode Command Prompt commands let you fix a computer that will not start, freezes on a black screen, or crashes in a boot loop. WinRE (short for Windows Recovery Environment) is a built-in repair tool that opens outside of your normal desktop so you can run text-based commands to scan your hard drive, repair startup files, and rescue your data.

Booting into this recovery screen gives you access to powerful diagnostic tools even when your PC fails to load Windows normally. Knowing the right commands stops you from panicking or paying for expensive repairs when a quick text fix brings your system back to life.

⚡ Quick Answer

Every Windows 11 recovery mode command prompt command you need includes the System File Checker and Deployment Image Servicing and Management tools to repair broken system files. Access the Command Prompt by navigating to Troubleshoot, Advanced options, and Command Prompt in the Windows Recovery Environment, then run sfc /scannow or DISM /Image:📁C:\ /Cleanup-Image /RestoreHealth.

What Is the Windows Recovery Environment and How Do You Open It?

The Windows Recovery Environment is a built-in troubleshooting area that runs separately from your normal operating system so you can fix computer startup problems. You can open it from inside Windows 11 by opening Settings, going to System, and choosing Recovery, or by turning your computer on and off three times during startup to force the automatic repair screen to appear.

Here are a few ways to open it:

  • From inside Windows 11 (if your PC turns on): Click the Start button , open your Settings, go to System, and then click Recovery. Next to Advanced startup, click the Restart now button. Your computer will restart into the recovery options screen.
  • Using the power button trick (if your PC will not boot): Turn on your computer. As soon as you see the logo or the loading dots, press and hold the physical power button for about 10 seconds to force a hard shutdown. Turn the computer back on and repeat this process two to three times. On the next startup, Windows will notice the problem and load the Automatic Repair screen, where you can open advanced options.
  • Using installation media: If your computer is completely broken, you can boot your PC from a Windows 11 USB installation drive, click Next on the first setup screen, and then click Repair your computer in the bottom-left corner.

Once you reach the blue recovery screen, go to Troubleshoot, then Advanced options, and click on Command Prompt. A black window with white text will open. This is your command line workspace.

Essential 🪟 Windows 11 Recovery Mode Command Prompt Commands

When you open the Command Prompt in recovery mode, your computer might use a temporary drive letter for your main operating system. Recovery mode often uses D: for your main Windows drive instead of the usual C: drive. Keep this in mind when you run commands.

Command Prompt
Command Prompt

1Run SFC to Repair Windows System Files

Running the System File Checker tool in the Windows 11 recovery mode command prompt scans all your important system files for damage, missing pieces, or changes. If the tool finds a broken file, it replaces it with a healthy backup from your computer's hidden storage to help your PC boot properly again.

Type the following command and press Enter:

💻Code
sfc /scannow /offbootdir=C:\ /offwindir=C:\windows
📝Note
Replace C: with your actual Windows installation drive letter if your system uses a different letter during recovery mode.

2Run DISM to Repair Windows System Images

Running the Deployment Image Servicing and Management tool, known as DISM, in the Windows 11 recovery mode command prompt repairs the base system image that runs Windows when system files are too damaged for SFC to fix on its own. This command downloads and replaces corrupted image files using clean recovery sources.

Type the following command and press Enter:

💻Code
DISM /Image:C:\ /Cleanup-Image /RestoreHealth

This command checks the health of your Windows image on drive C: and repairs any damage it finds.

3Run CHKDSK to Repair File System and Bad Sectors

Running the Check Disk utility, or CHKDSK, in the Windows 11 recovery mode command prompt scans your hard drive or solid-state drive for bad sectors, fixes file errors, and saves readable data when crashes stem from storage corruption. This essential repair command helps resolve disk read errors that stop your computer from starting up.

Type the following command and press Enter:

💻Code
chkdsk C: /f /r

The /f option tells the tool to fix any errors it finds. The /r option looks for bad sectors and saves readable information. This process can take a few minutes or a few hours depending on the size and speed of your drive.

4Run BOOTREC to Fix Boot Startup Failures

Running the boot repair utility tools in the Windows 11 recovery mode command prompt fixes startup failures when your computer turns on and shows a blue screen saying it cannot find a boot device. These specific bootrec commands rebuild your master boot record, partition boot sector, and boot configuration data.

Type the following commands one by one, and press Enter after each line:

💻Code
bootrec /fixmbr
bootrec /fixboot
bootrec /scanos
bootrec /rebuildbcd

These commands repair the Master Boot Record, write a new boot sector to your system drive, scan your drives for installed operating systems, and rebuild the boot database from scratch.

5Manage Disks and Partitions Using DISKPART

Using the DISKPART tool inside the Windows 11 recovery mode command prompt lets you look at your drive partitions, clean a drive, or assign drive letters while fixing your PC. This command line utility gives you raw partition and drive controls directly inside the recovery environment.

To use DISKPART, type the following command and press Enter:

💻Code
diskpart

Once the prompt changes to show you are inside Diskpart, you can type the following commands:

💻Code
list disk
select disk 0
list volume
exit

These commands show all connected storage drives, select your primary hard disk, list all available volumes and their drive letters, and safely exit the disk tool.

Advanced Troubleshooting: Diagnosing Hardware and Recovering Files

Along with repairing system files and boot records, the recovery Command Prompt lets you run hardware tests and rescue your personal files before you try a factory reset or clean install.

Diagnosing Memory Problems with MDSCHED

Running the Windows Memory Diagnostic tool, or MDSCHED, helps check your computer hardware for bad RAM, which is a main cause of random computer crashes, unexpected restarts, and blue screen errors. You can launch this diagnostic tool during troubleshooting to test your memory modules for hardware defects.

Type the following command and press Enter:

💻Code
mdsched.exe

A window will pop up and ask if you want to restart your computer and check for problems now or the next time you start your computer. Choose the restart option to let Windows test your physical memory for hardware problems.

Rescuing Personal Files Using XCOPY and Notepad

Rescuing personal files using Notepad and copy commands in the Windows 11 recovery mode command prompt lets you back up your important documents, photos, and files to an external USB drive if your computer cannot be fixed. This method gives you a reliable way to save your data before you reinstall Windows.

First, plug in an external USB drive. Find out its assigned drive letter by typing notepad and pressing Enter. A simple Notepad window will open. Click File Open, change the view to "All Files," and look at "This PC" to see the drive letter for your USB flash drive, such as E: or F:. Close Notepad.

Next, use the copy command to back up your user folder. For example, type:

💻Code
xcopy C:\Users\USERNAME\Documents E:\BackupDocuments /E /I /H
📝Note
Replace USERNAME with your actual Windows profile folder name and E: with your connected USB drive letter.

Alternative Recovery Methods When Commands Fail

Choosing alternative recovery methods when command prompt tools fail gives you options like using the Reset this PC feature to fix severe system damage in Windows 11. If your system still does not work after running repair commands, you can return to the Troubleshoot menu to reinstall core files or safely factory reset your device.

Reset this PC: Go back to the Troubleshoot menu in the Windows Recovery Environment and select "Reset this PC." You can choose to keep your personal files while wiping and reinstalling the core Windows system files.

Clean Installation: If your recovery partition is completely broken, use another working computer to download the official Windows 11 installation media creation tool, put it on a blank USB flash drive, and perform a completely clean installation of Windows 11.

Disk Management
Disk Management

Summary

Using the Windows 11 Recovery Environment Command Prompt gives you powerful tools to rescue your system when your computer fails to boot normally. Commands like SFC for system files, DISM for system images, CHKDSK for disk errors, and Bootrec for startup failures help you find and fix most boot problems without losing your important data.

Was this guide helpful?

Tags: #Windows 11
Was this helpful?
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

📚 Related Tutorials

How to Apply a Restore Point from Windows RE on Windows 11
Windows How to Apply a Restore Point from Windows RE on Windows 11
Advanced Windows 11 Troubleshooting: How To Use DISM And SFC Commands
Windows Advanced Windows 11 Troubleshooting: How To Use DISM And SFC Commands
When To Clean Install Windows 11 Instead Of Resetting
Windows When To Clean Install Windows 11 Instead Of Resetting
What Breaks When You Turn Off Windows 11 System Restore Points
Windows What Breaks When You Turn Off Windows 11 System Restore Points

No comments yet — be the first to share your thoughts!

Leave a Comment

Your email address will not be published. Required fields are marked *