PDF download Download Article
Plus, which type of safe mode to use to diagnose your computer problems
PDF download Download Article

If Windows 10 isn't behaving properly, you can boot into Safe Mode to run scans, uninstall software, and access the Command Prompt. Whether you're trying to get to the Command Prompt in Safe Mode or you want to learn how to boot into Safe Mode using CMD commands, we can help! This wikiHow article will teach you different ways to get to a safe Command Prompt window, and how to use Command Prompt to start Safe Mode.

What is the command prompt for Windows 10 Safe Mode?

Restart your computer and select Enable Safe Code with Command Prompt (f6) on the Startup Settings screen. Open the command prompt window, then enter the code bcdedit /set {default} safeboot minimal to reboot in Safe Mode.

Section 1 of 4:

Types of Windows Safe Modes

PDF download Download Article
  1. Safe Mode is the standard diagnostic startup mode for Windows. When you boot into Safe Mode, only the basic device drivers will load—you won't have internet access, and no third-party apps or drivers will launch at boot time. You can uninstall software, remove files, run your antivirus scanner, and perform tasks in the Command Prompt in regular Safe Mode.
  2. This version of Safe Mode is the same as the original Safe Mode, except Windows will also load your network card drivers so you can connect to the internet. [1] Use this version of Safe Mode if you want to download files, run updates, or do anything else that requires network access.
    Advertisement
  3. All versions of Safe Mode have access to the Command Prompt, but this version will only give you the Command Prompt. You won't have your typical Start menu or icons to click—just a simple admin-level Command Prompt window, making this mode useful only to IT professionals and system administrators.
  4. Advertisement
Section 2 of 4:

Get a Safe Command Prompt Outside of Windows

PDF download Download Article
  1. This method is essentially a workaround to getting an administrator-level command prompt when you can't boot into Windows. Even if your screen is blank or you can't get to the login screen, you'll be able to get a Command Prompt in Windows 10 thanks to the built-in recovery environment WinRE.
    • You will still need your administrator password to sign in. If you don't have the administrator password, you can still use this method to boot into Safe Mode.
    • If you deleted the recovery partition, WinRE won't work without a bootable Windows 10 DVD or flash drive, but we'll get to that soon.
    • Reboot your PC to the sign-in screen.
    • Hold down the Shift key as you click the Power icon and choose Restart .
    • Now skip to Step 4.
  2. If you are unable to get to the sign-in screen, you can still get to a Command Prompt for troubleshooting using the power button your PC to enter a special diagnostic mode. [2] Warning: this involves a lot of turning your PC off and back on again:
    • Start with your PC on.
    • Hold down the power button on your computer for 10 seconds—your PC will turn off.
    • Press the power button again to turn the PC back on.
    • As soon as the computer turns back on (you'll usually see the manufacturer's logo), press and hold the power button for 10 seconds to turn it off again.
    • Press the power button again to turn the PC back on.
    • Again, as soon as the computer turns back on , press and hold the power button for 10 seconds to turn it off.
    • Press the Power button again and allow your PC to boot into WinRE.
    • If this doesn't work, you may have deleted the recovery partition. You can boot your PC from a bootable Windows 10 DVD or USB drive . Once you boot from that media, continue to the next step.
  3. This is a blue screen with several icons.
  4. It's at the bottom of the screen.
  5. Choose this option if all you want is a Command Prompt. This option gives you a safe administrator prompt that you can use to diagnose problems with your PC. What it won't give you is a Windows desktop or Start menu.
    • If you'd rather start your PC in Safe Mode so you can use your typical menus and icons as well as have the option to launch the Command Prompt, choose Startup Settings , click Restart , and then press 4 or F4 to start Safe Mode (with no internet/network support) or 5 or F5 to start Safe Mode with Networking. You can launch the Command Prompt from either of these two modes.
  6. Advertisement
Section 3 of 4:

Get a Command Prompt in Safe Mode

PDF download Download Article
  1. If you want to access the Command Prompt while you're in Safe Mode to run commands, it's easy. To restart your computer in Safe Mode from the Windows desktop: [3]
    • Open the Start menu and click Settings .
    • Click Update & Security .
    • Click Recovery .
    • Click Restart now under "Advanced startup."
    • When the computer reboots, click Troubleshoot and select Advanced options .
    • Click Startup Settings .
    • Click Restart .
    • When the Safe Mode menu appears, press 5 or F5 to start Safe Mode with Networking, or press 4 or F4 to start Safe Mode without internet support.
  2. A list of matching results will appear.
  3. If you don't need to perform administrative tasks, you can open a regular Command Prompt window just by left-clicking Command Prompt in the search results.
  4. Advertisement
Section 4 of 4:

Boot into Safe Mode using Command Prompt Commands

PDF download Download Article
  1. Getting into Safe Mode from the Command Prompt is a lot more complicated than any other way you could access Safe Mode. This is because you'll need to run commands that edit your PC's boot configuration, making it so your PC only boots in Safe Mode until you change it back. If possible, use the steps in the "Get a Command Prompt in Safe Mode" method to get to Safe Mode instead—if that doesn't work, you can continue with this method. [4]
  2. If you want to be able to reboot Windows into Safe Mode using the command line, you can do so by modifying the boot record, and then changing it back after you're finished in Safe Mode. To get started:
    • Press Windows key + S to activate the Search bar.
    • Type cmd .
    • Right-click Command Prompt and select Run as administrator .
  3. You can start three types of safe mode from the command line—regular Safe Mode (with no network support), Safe Mode with Networking , and Safe Mode with Command Prompt . [5] Type the command for the type of Safe Mode you want to use, and then press Enter . This will force the computer to reboot into that version of safe mode immediately after rebooting.
    • Safe Mode: bcdedit /set {current} safeboot minimal
    • Safe Mode with Networking: bcdedit /set {current} safeboot network
    • Safe Mode with Command Prompt: Most people won't need to use this, as you can access the Command Prompt from both other Safe Modes. But if you prefer just a Command Prompt window without icons or menus, you'll need to enter two commands:
      • Type bcdedit /set {current} safeboot minimal and press Enter .
      • Type bcdedit /set {current} safebootalternateshell yes and press Enter .
  4. If you're unable to restart normally for any reason, you can restart from the command line by typing shutdown /r and pressing Enter . When the computer restarts, it'll boot into Safe Mode.
  5. Now that you're in Safe Mode, you can perform diagnostics, remove viruses and malware, uninstall software and drivers, or any other business you need to attend to.
  6. Before you get out of Safe Mode, you will need to undo the command you did earlier so Windows can boot normally. Just open Windows Search, type cmd , right-click Command Prompt , and then choose Run as administrator as you did earlier to get started.
  7. When you type this command and press Enter , you'll remove the "safeboot" value from the boot configuration, which allows Windows to boot normally next time: bcdedit /deletevalue {current} safeboot . [6]
  8. This time, your Windows PC will reboot into your normal login screen and desktop.
  9. Advertisement


Expert Q&A

Ask a Question
      Advertisement

      Tips

      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Name
      Please provide your name and last initial
      Thanks for submitting a tip for review!

      Expert Interview

      Thanks for reading our article! If you’d like to learn more about windows, check out our in-depth interview with Michael Thompson-Brown .

      About This Article

      Thanks to all authors for creating a page that has been read 105,919 times.

      Is this article up to date?

      Advertisement