Enter Safe Mode Using Command Prompt in Windows 11/10

Published by Nyau Wai Hoe - Updated on

Safe Mode is a simpler version of Windows that helps you sort out computer problems. It starts your computer with just the basics needed to run, which is great for fixing issues with software, drivers, viruses, or other glitches. Imagine it like stripping down a car to its frame to figure out what’s wrong. In this guide, we’ll show you how to jump into Safe Mode using just command lines through the Command Prompt in Windows 11 or 10.

Also see: Enter Safe Mode in Windows 11/10 when PC isn’t booting

How to Enter Safe Mode Using Command Prompt in Windows 11

What is Safe Mode in Windows?

Safe Mode is the bare-bones version of Windows, running only the must-have drivers and services. It’s perfect for diagnosing and fixing problems from software clashes, driver mishaps, to malware mess-ups. It’s your go-to tool for when your computer is acting up or when you need to get rid of troublesome software.

Windows has three Safe Mode flavors:

  1. Safe Mode: The standard mode with just the essential drivers and services.
  2. Safe Mode with Networking: Just like regular Safe Mode, but you can still get online. Handy for downloading updates or drivers.
  3. Safe Mode with Command Prompt: This is Safe Mode, but instead of the usual Windows look, you get a Command Prompt. Great for those who love typing commands to fix problems.

We’ll cover how to get into each of these Safe Modes using the Command Prompt in Windows 11/10.

Recommended resource: How to Startup Repair Windows 10/11 using Command Prompt

Steps to enter Safe Mode using Command Prompt

Step 1: Open Command Prompt as administrator

  1. Hit the Start button or press the Win key to bring up the Start menu.
  2. Search for “cmd” or “command prompt”.
  3. Right-click on Command Prompt in the search results and pick Run as administrator. If asked, click Yes to give it the thumbs up.

Command Prompt Run as Administrator

Step 2: Configure Windows to start in Safe Mode

To get into the Safe Mode you want, follow these steps:

Safe Mode (Basic)

In the Command Prompt window, type this command and hit Enter to kick off Windows in basic Safe Mode:

bcdedit /set {current} safeboot minimal

Enter Safe Mode using Command Prompt

Safe Mode with Networking

Or, type this command and hit Enter for Safe Mode with network smarts, letting you go online:

bcdedit /set {current} safeboot network

Command lines to enter Safe Mode with Networking

Safe Mode with Command Prompt

For Safe Mode with Command Prompt, do this:

First, turn on basic Safe Mode with this command and pressing Enter:

bcdedit /set {current} safeboot minimal

Then, switch to command mode with this command and Enter:

bcdedit /set {current} safebootalternateshell yes

Command lines to enter Safe Mode with Command Prompt

After these commands, you should get a message that you’re all set. Your computer is now ready to start in your chosen Safe Mode next time you restart it.

Linked issue: Windows 11 Keeps Booting in Safe Mode (Fix)

Step 3: Restart your computer

  1. Restart your computer with this command:
    shutdown /r /t 0
  2. Now, your computer will restart and head straight into the Safe Mode you picked.

Shut down PC using command line

Exiting Safe Mode and returning to normal mode

If you’re done in Safe Mode and want to get back to regular Windows, follow these steps:

  1. Open Command Prompt in safe mode.
  2. Run this command and press Enter:
    bcdedit /deletevalue {current} safeboot
  3. If you were in Safe Mode with Command Prompt, turn off the command-only mode with this command:
    bcdedit /deletevalue {current} safebootalternateshell
  4. You’ll see a message that everything went smoothly. Your computer is now set to start normally next time you boot up.Enter Safe mode in Windows using command lines
  5. To restart and go back to normal Windows, type this and press Enter:
    shutdown /r /t 0
  6. And that’s it, you’ll boot up as usual.

What we’ve learned

Using the Command Prompt to start Safe Mode gives you more power and options if you like using command-line tools. Here’s why you might want to use this approach to get into Safe Mode:

  1. It lets you easily choose between different Safe Mode options (like the basic one, one with networking, or one with Command Prompt). This is super useful when you need to figure out tricky problems that need checking in different settings.
  2. If you’re someone who knows their way around computers really well or if you’re an IT pro who often needs to start Safe Mode on lots of computers, or as part of fixing bigger issues, using Command Prompt can save you a lot of time. You can make scripts or set things up to happen automatically.
  3. Sometimes, you can’t use the usual way of doing things because of computer bugs, nasty viruses, or problems with drivers. In these situations, Command Prompt is a lifesaver because it doesn’t need the normal graphical stuff to work.

To wrap it up, although there are other ways to get into Safe Mode, going through the Command Prompt is a great choice for those who need that extra level of control and precision for solving complicated Windows problems.


Nyau Wai Hoe
Nyau Wai Hoe is the Founder and Chief Editor of WindowsDigitals.com. With a degree in software engineering and over 12 years of experience in the tech support industry, Nyau has established himself as an expert in the field, with a primary focus on the Microsoft Windows operating system. As a tech enthusiast, he loves exploring new technologies and leveraging them to solve real-life problems.

Share via
Copy link