Halloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan NowHalloween DealsAmazon USOctober picks are moving - compare before checkoutAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
Redmond desk4 min

Windows 11 Recovery Mode Command Prompt: Essential Commands and How to Use Them

Windows may use a different drive letter in WinRE. Identify the offline installation first, then choose the appropriate disk, system-file, or image repair command.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The most useful Windows 11 Recovery Environment (WinRE) Command Prompt commands are bcdedit to identify the offline Windows volume, chkdsk to check that volume, sfc to scan protected system files, and DISM to service the offline Windows image. First find the correct drive letter: Windows may not be on C: in WinRE. These are core troubleshooting commands, not a complete list of every command available in every recovery image.

How to open Command Prompt in Windows Recovery Environment

WinRE is Windows’ built-in recovery environment. Microsoft describes its Command Prompt as providing “access to a command-line interface for advanced troubleshooting.” It is intended for troubleshooting, and it is possible to change or damage system data by using the wrong command or target.

As an Amazon Associate I earn from qualifying purchases.

If Windows will not start, boot from Windows installation media and select Repair your PC, then go to Troubleshoot > Advanced options > Command Prompt. Installation media is an optional way to reach recovery tools; the USB drive itself does not repair Windows.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

If you can already reach WinRE, open Troubleshoot > Advanced options > Command Prompt. The exact tools available can vary with the recovery image and device.

#1 Best Overall
5-in-1 Win Repair & Reinstall Bootable USB Flash Drive – Fix, Recover, or Reinstall Windows 11 (amd64 + arm64) / 10/7 - Includes PE Tools, Driver Pack, Antivirus, Data Recovery & Password Reset
  • Dual USB-A & USB-C Bootable Drive – compatible with nearly all Windows PCs, laptops, and tablets (UEFI & Legacy BIOS). Works with Surface devices and all major brands.
  • Fully Customizable USB – easily Add, Replace, or Upgrade any compatible bootable ISO app, installer, or utility (clear step-by-step instructions included).
  • Complete Windows Repair Toolkit – includes tools to remove viruses, reset passwords, recover lost files, and fix boot errors like BOOTMGR or NTLDR missing.
  • Reinstall or Upgrade Windows – perform a clean reinstall of Windows 7 (32bit and 64bit), 10, or 11 (amd64 + arm64) to restore performance and stability. (Windows license not included.). Includes Full Driver Pack – ensures hardware compatibility after installation. Automatically detects and installs drivers for most PCs.
  • Premium Hardware & Reliable Support – built with high-quality flash chips for speed and longevity. TECH STORE ON provides responsive customer support within 24 hours.

How to find your Windows drive in Command Prompt

Do not assume the Windows installation is C:. Drive letters can differ in WinRE from those used during normal startup. Microsoft’s troubleshooting workflow uses BCDEdit to identify the system volume by checking osdevice in the Windows Boot Loader section.

  1. At the prompt, enter bcdedit and press Enter.
  2. Find the Windows Boot Loader section and read its osdevice entry. Microsoft’s example shows D:; your installation may use another letter.
  3. Use the letter shown there in the commands below, and check that the Windows directory exists at that location before running an offline repair.

For example, if the entry identifies D:, the Windows directory would be written as D:Windows in a path. Treat that as an example, not a universal path.

Commands for diagnosing and repairing an offline Windows installation

Check the system volume with CHKDSK

CHKDSK checks a volume’s file system and metadata. The /f switch tells it to attempt to fix errors it finds, so this is more than a read-only check. Microsoft’s WinRE example is:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

chkdsk /f D:

Replace D: with the volume letter you identified. Do not run the example against a different volume just because that letter is familiar.

Scan protected system files with SFC

SFC supports an offline scan when you specify the boot directory and Windows directory. Microsoft’s example is:

SFC /scannow /offbootdir=D: /offwindir=D:windows

Replace both example paths with the actual locations for your installation. The drive letter and directory must match the offline Windows installation; an assumed C: path can target the wrong place or fail to find Windows.

Rank #2
SANDISK 128GB Ultra Flair, USB-A Flash Drive, Up to 150MB/s Read Speeds | USB Flash Drive, Up to 15x Faster than standard 2.0, Password Protection, Durable, Sleek Metal Casing, USB 3.0, Silver/Black
  • High-speed USB 3.0 performance of up to 150MB/s(1) [(1) Write to drive up to 15x faster than standard USB 2.0 drives (4MB/s); varies by drive capacity. Up to 150MB/s read speed. USB 3.0 port required. Based on internal testing; performance may be lower depending on host device, usage conditions, and other factors; 1MB=1,000,000 bytes]
  • Transfer a full-length movie in less than 30 seconds(2) [(2) Based on 1.2GB MPEG-4 video transfer with USB 3.0 host device. Results may vary based on host device, file attributes and other factors]
  • Transfer to drive up to 15 times faster than standard USB 2.0 drives(1)
  • Sleek, durable metal casing
  • Easy-to-use password protection for your private files(3) [(3)Password protection uses 128-bit AES encryption and is supported by Windows 7, Windows 8, Windows 10, and Mac OS X v10.9 plus; Software download required for Mac, visit the SanDisk SecureAccess support page]

Repair the offline image with DISM

DISM can service an offline Windows image. Microsoft’s example is:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

DISM /image:D: /cleanup-image /restorehealth

Change the image path to the actual offline installation. If DISM needs repair files from a source, that source must also match the Windows image; do not substitute an arbitrary folder or image. The online DISM recipe using /Online is for a running Windows installation, not a substitute for the offline /image: syntax in WinRE.

How to sequence the offline checks

Microsoft’s WinRE workflow identifies the system volume, checks it with CHKDSK, runs offline SFC, and then uses DISM; if DISM fixes an issue, the workflow repeats SFC. This is distinct from Microsoft’s general guidance for a running Windows installation, which recommends DISM before SFC. Follow the offline paths and syntax when Windows is not running.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

When to use Startup Repair or another recovery option

Command Prompt is not the only recovery tool. If the problem is that Windows will not start, try Troubleshoot > Advanced options > Startup Repair. Microsoft says Startup Repair attempts to diagnose common startup problems, including damaged system files and boot configuration issues. An encrypted device may ask for its BitLocker recovery key.

Other available choices include removing a recent update, System Restore, and Reset this PC. Choose based on the likely cause and how much of the system the option changes:

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Option Most relevant when Effect to consider
Command Prompt You need to inspect or repair a specific offline volume, system-file set, or Windows image. Effect depends on the command and switches; verify the target before running it.
Startup Repair Windows does not start and the problem may involve startup files or configuration. It attempts automatic diagnosis and repair; a BitLocker recovery key may be required.
Uninstall updates The startup problem followed a recent update. Removes an update rather than applying a command-line file or image repair.
System Restore You want to use a restore point to recover from a system change. Changes system state; review the recovery option before proceeding.
Reset this PC You are considering a broader Windows recovery action. Some recovery options can cause data loss. Check the selected reset option’s effect on files before continuing.

Safety checks before running a repair

  • Verify the volume: Use the osdevice value from bcdedit and confirm the Windows directory is on that volume.
  • Protect important files: Back them up where possible before using recovery options that could cause data loss.
  • Have the BitLocker key available: WinRE may require it to access an encrypted device.
  • Avoid improvised boot or partition changes: The commands here cover identification and core repairs, not configuration-specific BCD, UEFI, partition, registry, or BitLocker procedures. Do not make those changes unless you understand the exact target and procedure.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

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

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.