Windows safe mode command prompt

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.

Download Article

Plus, which type of safe mode to use to diagnose your computer problems

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.

  1. Step 1 Safe Mode.

    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. Step 2 Safe Mode with Networking.

    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. Step 3 Safe Mode with Command Prompt.

    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

  1. Step 1 Use this method if you can't boot into Windows and you need to use the Command Prompt.

    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.
  2. Step 2 If you can get to the sign-in screen, try this first.

    • 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.
  3. Step 3 Enter the Windows Recover (WinRE) environment.

    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.
  4. Step 4 Click Troubleshoot on the "Choose an option" screen.

    This is a blue screen with several icons.

  5. Step 5 Click Advanced options.

    It’s at the bottom of the screen.

  6. Step 6 Click Command Prompt.

    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.
  7. Advertisement

  1. Step 1 Reboot your PC into Safe Mode.

    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. Step 2 Press the Windows key and type cmd.

    A list of matching results will appear.

  3. Step 3 Right-click Command Prompt and choose Run as administrator.

    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

  1. Step 1 Try a simpler way to get to Safe Mode first.

    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. Step 2 Open the Command Prompt as an administrator.

    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. Step 3 Run the command to reboot into Safe Mode.

    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. Step 4 Restart your PC.

    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. Step 5 Perform tasks in Safe Mode.

    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. Step 6 Open the Command Prompt.

    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. Step 7 Run the command to exit Safe Mode.

    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. Step 8 Reboot your PC.

    This time, your Windows PC will reboot into your normal login screen and desktop.

  9. Advertisement

Ask a Question

200 characters left

Include your email address to get a message when this question is answered.

Submit

Advertisement

Thanks for submitting a tip for review!

About This Article

Thanks to all authors for creating a page that has been read 113,392 times.

Is this article up to date?

One way to troubleshoot Windows 10 problems or fix boot failures is to start the system in Safe Mode. Safe Mode only loads the essential components, which helps you isolate and solve the issues. However, some problems are so severe that they interfere with the graphical user interface, making Safe Mode with Command Prompt a better option, as it doesn’t run the Explorer shell. In this guide, I will show you eight different ways to boot Windows 10 in Safe Mode with Command Prompt. Let’s begin:

NOTE: This guide explains how to start Windows 10 in Safe Mode with Command Prompt. As you probably know, Safe Mode is a diagnostic mode that lets you troubleshoot problems on your PC. If you’d rather boot your computer in standard Safe Mode or in Safe Mode with Networking, follow the instructions in these tutorials: How to boot Windows 10 in Safe Mode and How to start Windows 10 in Safe Mode with Networking.

Understanding Safe Mode with Command Prompt. What’s different from standard Safe Mode in Windows 10?

Safe Mode with Command Prompt is a special startup mode that allows you to access Windows 10 with an extremely minimal set of drivers and services. In this mode, you can use a Command Prompt window to perform various tasks for troubleshooting, repairing, or restoring your system. The Safe Mode with Command Prompt is designed for IT professionals and administrators who need to perform advanced operations like managing disk partitions or repairing boot problems.

Safe Mode with Command Prompt differs from standard Safe Mode in that it doesn’t load the Explorer shell, which is the main component of the Windows 10 graphical user interface. Instead, all you get is a black screen with a Command Prompt window, like in the screenshot below. However, it’s worth noting that you can still use keyboard shortcuts to switch between applications (Alt + Tab, for example), access the Task Manager (Ctrl + Shift + Esc), or shut down your computer (Alt + F4).

Windows 10 in Safe Mode with Command Prompt

Windows 10 in Safe Mode with Command Prompt

There are many ways to access Safe Mode with Command Prompt, and I’ll cover all of them in the next chapters of this guide. I’m going to start with the methods that allow you to restart in Safe Mode with Command Prompt when you can’t log in to Windows 10, and I’ll continue with the ones available when you can sign in.

How to boot in Safe Mode with Command Prompt when unable to log in to Windows 10

If you have to boot a Windows 10 device in Safe Mode with Command Prompt but can’t log in, here are the methods you have on hand:

1. How to reboot to Safe Mode with Command Prompt using Shift + Restart

Power on your Windows 10 PC and let it boot normally. When you reach the sign-in screen, press and hold the Shift key while clicking the Power button, and then Restart.

How to boot Windows 10 in Safe Mode with Command Prompt without login

How to boot Windows 10 in Safe Mode with Command Prompt without login

After a short while, you’ll see a blue screen with multiple choices. Click or tap Troubleshoot.

Click Troubleshoot (Reset your PC or see advanced options)

Click Troubleshoot (Reset your PC or see advanced options)

On the Troubleshoot screen, click or tap Advanced options.

Accessing the advanced troubleshooting options

Accessing the advanced troubleshooting options

Next, select the Startup Settings from the list of Advanced options.

Click the Startup Settings option

Click the Startup Settings option

This loads the Startup Settings screen, where you get to see what options will become available once you reboot your Windows 10 device. Click tap the Restart button.

Startup Settings: Choose Restart for Windows 10 Safe Mode options

Startup Settings: Choose Restart for Windows 10 Safe Mode options

After your PC restarts, you’ll see all the boot options you can use. To start Safe Mode with Command Prompt, select the sixth option: “6) Enable Safe Mode with Command Prompt.You can do this by pressing 6 or F6 on your keyboard.

Press 6 or F6 to start Safe Mode with Command Prompt

Press 6 or F6 to start Safe Mode with Command Prompt

Windows 10 will restart again, but this time, your computer will boot straight into Safe Mode with Command Prompt.

2. How to reboot into Safe Mode with Command Prompt when Windows 10 shows only a black screen

If your Windows 10 device doesn’t display anything on the screen after you start it, you can try to force restart it to Safe Mode with Command Prompt in order to troubleshoot and fix problems using commands. To force restart, you must interrupt the normal boot process by pressing the Reset or the Power button on your computer while it’s starting. Moreover, you need to do this three times in a row. The fourth time it attempts to boot, Windows 10 will automatically launch Automatic Repair. You can tell that you have successfully interrupted the boot process when you see the “Preparing Automatic Repair” message on the screen.

How to boot into Safe Mode with Command Prompt from a black screen

How to boot into Safe Mode with Command Prompt from a black screen

After some time, the message will change to “Diagnosing your PC.” You need to wait for the operating system to do that.

Diagnosing your Windows 10 PC

Diagnosing your Windows 10 PC

When it’s done, Windows 10 will display the Automatic Repair screen, which looks like the following screenshot. On it, click or tap on Advanced options.

Accessing the advanced troubleshooting options

Accessing the advanced troubleshooting options

Then, click or tap Troubleshoot on the Choose an option screen.

Click or tap on Troubleshoot

Click or tap on Troubleshoot

Next, take the same steps shown in the first method of this guide, which is to go to Advanced options > Startup Settings > Restart > Enable Safe Mode with Command Prompt (press the 6 or the F6 key).

Go to Advanced options data-lazy-src=

Go to Advanced options > Startup Settings > Restart > Enable Safe Mode with Command Prompt

TIP: If you need help exiting Safe Mode with Command Prompt, here are the ways to do that: How to exit Safe Mode in Windows.

3. How to start Windows 10 in Safe Mode with Command Prompt using CMD and a Windows 10 installation disc or USB drive

This is another way to access Safe Mode with Command Prompt when Windows 10 fails to start. Use another computer and a blank DVD or USB drive to create your own Windows 10 installation media. Then, insert the DVD or USB drive into the broken PC and boot from it. When you see the Windows 10 setup screen, choose your language and keyboard layout. Click or tap Next to proceed.

The Windows 10 Setup

The Windows 10 Setup

Once you see the Windows Setup wizard, click or tap the Repair your computer link in the bottom-left corner.

Click on Repair your computer

Click on Repair your computer

The Windows 10 setup wizard will then load the Choose an option screen. On it, click or tap Troubleshoot.

Select Troubleshoot to get to Windows 10 Safe Mode with Command Prompt

Select Troubleshoot to get to Windows 10 Safe Mode with Command Prompt

The Troubleshoot screen loads. On it, click or tap Advanced options.

Select Advanced options

Select Advanced options

Next, on the Advanced options screen, choose “Command Prompt (Use the Command Prompt for advanced troubleshooting).”

Starting the Command Prompt

Starting the Command Prompt

For Windows 10 boot into Safe Mode with Command Prompt, you’ll now have to run this commands, one after the other:

bcdedit /set {default} safeboot minimal

bcdedit /set {default} safebootalternateshell yes

Both commands should finish with this message: “The operation completed successfully.”

Using CMD to start Safe Mode with Command Prompt

Using CMD to start Safe Mode with Command Prompt

Finally, close the Command Prompt and then click or tap on “Continue (Exit and continue to Windows 10)” to load the Safe Mode with Command Prompt.

Choose Continue to start Windows 10 in Safe Mode with Command Prompt

Choose Continue to start Windows 10 in Safe Mode with Command Prompt

IMPORTANT: To get back to normal boot after you’ve finished repairing what’s broken, follow the same steps, but run these commands instead:

bcdedit /deletevalue {default} safeboot

shutdown.exe /r

The first one disables Safe Mode with Command Prompt, and the second one restarts your Windows 10 computer to apply the new setting.

Disable and exit Safe Mode with Command Prompt

Disable and exit Safe Mode with Command Prompt

TIP: Here are some of the most useful commands you can run in CMD: 20 best Command Prompt (CMD) commands you should know.

4. How to boot into Safe Mode with Command Prompt using a Windows 10 recovery drive

If your computer malfunctions and you want to boot into Safe Mode with Command Prompt, you can also use a recovery disk that you already have or that you created on another Windows 10 PC.

Creating a Windows 10 Recovery Drive

Creating a Windows 10 Recovery Drive

Boot your computer using the recovery drive, and select your preferred keyboard layout on the first screen.

Choose the keyboard layout for the recovery drive

Choose the keyboard layout for the recovery drive

Then, click or tap Troubleshoot on the Choose an option screen.

Select Troubleshoot to get to Windows 10 Safe Mode with Command Prompt

Select Troubleshoot to get to Windows 10 Safe Mode with Command Prompt

Next, follow the same steps presented in this guide’s first method. That means you should navigate the Windows 10 recovery environment to go to Advanced options > Startup Settings > Restart > Enable Safe Mode with Command Prompt (press the 6 or the F6 key).

Go to Advanced options data-lazy-src=

Go to Advanced options > Startup Settings > Restart > Enable Safe Mode with Command Prompt

Once you do that, your Windows 10 PC will restart in Safe Mode with Command Prompt.

How to start Safe Mode with Command Prompt when you can sign in to Windows 10

If you require access to the Safe Mode with Command Prompt and Windows 10 still lets you log in, here’s what to do:

5. How to start Windows 10 in Safe Mode with Command Prompt using Shift + Restart

Boot your Windows 10 computer, log in using your account, and open the Start Menu. Then, press and keep the Shift key down, click or tap the Power button, and select Restart from the list of options.

How to start Windows 10 in Safe Mode with Command Prompt from the Start Menu

How to start Windows 10 in Safe Mode with Command Prompt from the Start Menu

After a couple of seconds, you will see a blue screen with several options: “Continue (Exit and continue to Windows 10)”, “Use a device (Use a USB drive, network connection, or Windows recovery DVD),” “Troubleshoot (Reset your PC or see advanced options),” and “Turn off your PC.” Click or tap on Troubleshoot.

Select Troubleshoot to get to Windows 10 Safe Mode with Command Prompt

Select Troubleshoot to get to Windows 10 Safe Mode with Command Prompt

Next, perform the same steps shown in this guide’s first method. In short, go to Advanced options > Startup Settings > Restart > Enable Safe Mode with Command Prompt (press the 6 or the F6 key).

Go to Advanced options data-lazy-src=

Go to Advanced options > Startup Settings > Restart > Enable Safe Mode with Command Prompt

Windows 10 will then restart in Safe Mode with Command Prompt.

6. How to reboot into Safe Mode with Command Prompt from Windows 10’s Settings

Safe Mode with Command Prompt can also be accessed from the Advanced startup settings in Windows 10. Open the Settings app, and click or tap on Update & Security.

Update & Security in the Windows 10 Settings app

Update & Security in the Windows 10 Settings app

Then, select Recovery in the left sidebar, and click or tap Restart now in the Advanced startup section on the right.

Click Restart now under Advanced startup in Windows 10's Recovery settings

Click Restart now under Advanced startup in Windows 10’s Recovery settings

When asked, confirm that you want to restart your Windows 10 PC. Then, you should see the Choose an option screen. On it, click or tap Troubleshoot.

Select Troubleshoot to get to Windows 10 Safe Mode with Command Prompt

Select Troubleshoot to get to Windows 10 Safe Mode with Command Prompt

The next steps are the same as the ones shown in the first method from this guide: Advanced options > Startup Settings > Restart > Enable Safe Mode with Command Prompt (press the 6 or the F6 key).

Go to Advanced options data-lazy-src=

Go to Advanced options > Startup Settings > Restart > Enable Safe Mode with Command Prompt

Once you’ve taken all the required steps, your Windows 10 device will restart in Safe Mode with Command Prompt.

7. How to set Windows 10 to start in Safe Mode with Command Prompt using msconfig (System Configuration)

If you prefer making your Windows 10 computer always start into Safe Mode with Command Prompt, you can do that with the System Configuration tool, also known as msconfig. First, open System Configuration: a fast way is to type system configuration or msconfig in the taskbar search box and then click or tap the System Configuration result.

Open System Configuration (msconfig)

Open System Configuration (msconfig)

In the System Configuration window, go to the Boot tab, check the Safe boot option, and select Alternate shell under it.

Use msconfig to enable Safe Mode with Command Prompt

Use msconfig to enable Safe Mode with Command Prompt

You’ll then be notified that you need to restart your computer to apply the change. If you want to do that right now, click or tap Restart. Otherwise, choose Exit without restart, save your work and the files open on your PC, and then manually restart your Windows 10 computer.

Restart Windows 10 in Safe Mode with Command Prompt

Restart Windows 10 in Safe Mode with Command Prompt

After Windows 10 restarts, your computer will automatically start in Safe Mode with Command Prompt.

Safe Mode with Command Prompt in Windows 10

Safe Mode with Command Prompt in Windows 10

You can now use commands to repair your broken Windows 10 PC. When done troubleshooting, you can exit Safe Mode with Command Prompt by running the msconfig command to open System Configuration, unchecking the Safe boot option, and using the Alt + F4 keyboard shortcut to shut down your PC.

8. How to boot in Safe Mode with Command Prompt using the shutdown command in CMD

The last method to start Windows 10 in Safe Mode with Command Prompt that I know is available, surprise, from the Command Prompt. 🙂 On your computer, open CMD as an admin and run this command:

shutdown.exe /r /o

How to boot Windows 10 in Safe Mode with Command Prompt using the shutdown command

How to boot Windows 10 in Safe Mode with Command Prompt using the shutdown command

Once you run the command, the operating system tells you that you’re going to be signed out. In fact, this command will make Windows 10 reboot and automatically enter its recovery mode.

You're about to be signed out

You’re about to be signed out

After a while, you’ll get to the Choose an option screen. On it, click or tap Troubleshoot.

Select Troubleshoot to get to Windows 10 Safe Mode with Command Prompt

Select Troubleshoot to get to Windows 10 Safe Mode with Command Prompt

Then, perform the same steps as in this guide’s first method: go to Advanced options > Startup Settings > Restart > Enable Safe Mode with Command Prompt (press the 6 or the F6 key).

Go to Advanced options data-lazy-src=

Go to Advanced options > Startup Settings > Restart > Enable Safe Mode with Command Prompt

That’s it!

Are there any other methods to start Windows 10 in Safe Mode with Command Prompt?

Wow, you’ve made it to the end! This guide, like all the others about Safe Mode, was quite technical and long. I have to admit that it proved quite challenging for me to make sure I included every detail of every method. But I do hope that you’ve learned from it and that you now know how to get your malfunctioning Windows 10 computer into Safe Mode with Command Prompt. If you have anything to add, feel free to leave a comment in the section below. Oh, and thank you for your patience!

Источник

Last Updated :
06 Feb, 2025

Safe Mode is an essential troubleshooting tool in Windows 10 and 11. It lets you work with your minimal set of drivers and troubleshoot any issue with the software or hardware conflicts. This guide will provide you with detailed steps to boot your Windows 10 and Windows 11 PC into Safe Mode and fix abrupt issues of your Windows PC.

Table of Content

  • 1. Using the Settings Menu (Win 10 &11)
  • 2. Using the System Configuration
  • 3. Using the Power Menu (Win 10 & 11)
  • 4. Force Restart PC
  • 5. Using a Bootable USB or Recovery Drive
  • Common Issues During Safe Mode

Methods to Perform Safe Mode

Three methods exist to enter your Windows 10 or 11 into the Safe Mode:

1. Normal Safe Mode: It usually involves the basic method to let your Windows PC enter the Safe Mode with essential drivers and services.

2. Safe Mode with Networking: This method adds Networking drivers for seamless Internet access to troubleshoot your PC.

3. Safe Mode using Command Prompt: For advanced methods, Safe Mode in Windows computers can be performed using the Command Prompt (having admin access)

Note: You need to restart your PC after running any of this command to start your PC with the Safe Mode.

How to Start PC in Safe Mode in Windows — 5 Methods

To Launch Windows on Safe Mode, the following guidelines should properly be used. Let’s understand all methods in detailed steps along with their screenshots.

The first method to boot your Windows 10/11 PC in the Safe Mode is by using te Windows Settings Menu (typically the basic mode). Let’s check out the detailed steps to perform this action:

Settings-01

Settings

Step 2: Choose Update & Security Option

Windows-Update

Step 3: Go to Advance Startup

System-Recovery

System Recovery

Step 4: Choose Advance Option

So, select any of these option as per your need and your Windows 10/11 PC will enter into the Safe Mode.

2. Using the System Configuration

You can perform a Safe Mode in Windows using the System Configuration. Here’s what need to do to perform this action:

Step 1: Access the Run Dialog Box

Run-04

Run

Step 2: Go to the Boot Tab

Step 3: Choose Your Safe Mode Type

System-Configuration-05

System Configuration 05

Step 4: Click OK and Restart

How to Exit Safe Mode?

To exit Safe Mode later, open the System Configuration tool again, uncheck the Safe boot option, and restart your PC.

Windows Power Menu option can be a good choice for beginners whether it’s Windows 10 or 11, it fits on both Windows OS. Here’s what needs to be done:

Step 2: Hold Shift and Click Restart

win-shift

Click Restart + Shift Key

Step 3: Select Troubleshoot Option

troubleshoots

Choose Troubleshoot

Important:

To choose an option from the menu, you need to have a keyboard connected to your device. Although Windows 11, 10, and 8 support touch devices. However, the on-screen keyboard isn’t available in the Startup Settings menu.

Step 4: Select Advanced Options

Click on Advanced options & select the Startup Settings and then click Restart.

advance-options

Select Advanced options

Step 5: Select among Different Safe Mode Options

restart-options

Restart options

4. Force Restart PC

There might be a chance that your system gets stuck due to any Windows bugs and your system becomes unresponsive. Worry not, this still can be fixed by making a Force Restart to enter the Safe Mode. ere’s what you need to do:

Step 1: Interrupt the Normal Boot Process

Step 2: Choose Troubleshoot

advanced-win

Select «Advanced Options»

Step 3: Select Advanced Options

Step 4: Choose Safe Mode Option

Important Tip — Use this method as per your risk because forcefully shuting down you personal PC can affect you opreating system.

5. Using a Bootable USB or Recovery Drive

If you face difficulty while performing the above methods, you may try using a Bootable USB or recovery drive to perform a Safe Mode booting in Windows 10 or 11. Here’s a detailed break down for performing it:

Step 1: Insert Bootable USB or Recovery Drive

Step 2: Restart Your PC

Step 3: Boot from USB/Recovery Drive

Step 4: Navigate to Startup Settings

Step 5: Select Safe Mode Option

Common Issues During Safe Mode

Conclusion

Starting your PC in Safe Mode is a crucial step for troubleshooting and resolving various issues in Windows. By following the steps outlined in this guide, you can easily access Safe Mode and address problems that may be affecting your system’s performance or stability. Regularly using Safe Mode for troubleshooting can help maintain your PC’s health and ensure smooth operation.

Also Read

Источник

Key Points

  • Advanced Startup (Shift+Restart)
    1. Hold Shift while clicking Restart.
    2. Go to Troubleshoot > Advanced options > Startup Settings.
    3. Press F6 to select Enable Safe Mode with Command Prompt.
  • msconfig Method
    1. Run msconfigBoot tab.
    2. Check Safe boot and pick Alternate shell.
    3. Restart; system boots in Safe Mode with Command Prompt.
    4. Uncheck Safe boot later to exit Safe Mode.
  • Alternative Methods
    • F8 / Shift+F8 during boot might open Safe Mode (less common on newer systems).
    • Recovery Drive helps if Windows can’t boot normally.

Your computer has just decided to throw a digital tantrum, and all the regular troubleshooting tricks just aren’t cutting it. You know that there’s something awry under the hood of your Windows operating system, but navigating the litany of errors is making your head spin.

Fortunately, there’s another option: start Safe Mode from the Command Prompt. Windows’ Safe Mode feature can become your detective toolkit, an essential strategy for isolating problems and restoring order on your machine.

Safe Mode using Windows Command Prompt gives you access to your system’s core functions in a restricted environment, where potential problems are easier to isolate and fix. This guide walks you through the steps needed to start Safe Mode with Windows Command Prompt.

Watch the video version of this blog post: How to Start Safe Mode with Windows Command Prompt [Video].

Can’t boot normally? NinjaOne offers robust data recovery software to safeguard your digital assets.

Check it out.

Is it safe to boot from the Command Prompt?

The Command Prompt (cmd.exe) offers a direct line into Windows’ inner workings, letting you manage system functions hands-on through various text-based commands. Although modern computers gravitate towards user-friendly graphical interfaces, certain tasks can only be executed or are more efficiently managed through the trusty Command Prompt window — especially when the system’s functionality starts to break down.

In particular, you can start Windows in Safe Mode with Command Prompt. Whether you’re experiencing corrupted files, problematic drivers, or software conflicts, accessing Safe Mode via Command Prompt is a powerful route toward diagnosing and resolving these challenges.

Safe Mode is a specialized diagnostic mode in Windows that restricts the operating system to its most basic functionalities. This makes it ideal for solving complex issues without interference from third-party applications or system processes.

Below, we’ll look at several ways to initiate Safe Mode with the Command Prompt.

How to start Windows from the Command Prompt

Advanced startup options and Command Prompt

You can invoke Safe Mode with Command Prompt using the Advanced Startup Options menu, a key troubleshooting toolkit within Windows systems.

  1. Restart your PC while holding down the Shift key. Select “Power” and then “Restart.” Your PC will reboot into the “Choose an option” screen.
  2. Click “Troubleshoot” and then “Advanced options.” Select “Startup Settings,” then press “Restart.”
  3. Upon restarting, you’ll see a list of options. Press F6 to select “Enable Safe Mode with Command Prompt.”

msconfig and Command Prompt

Using the msconfig Windows system configuration tool lets users configure startup settings directly from the desktop.

After troubleshooting and diagnosing the issue, don’t forget to uncheck “Safe boot” to reenable normal startup — or else your system will be locked in a continuous loop of booting only in Safe Mode!

Other alternative methods

Create a backup before making any changes in Safe Mode

Before you boot Safe Mode from CMD, backing up your computer can help you recover from any unforeseen mistakes or complications. Here’s how you can protect your files and data:

  1. Use system restore: Search for “Create a restore point” in the Start menu and follow the prompts in the System Properties dialog box. This action saves your current system state, allowing you to revert back if your changes go awry.
  2. Leverage file history: If you have been using Windows’ built-in File History feature, make sure it’s updated before entering Safe Mode. Hook up your external drive or confirm your network location and update any pending backups.
  3. Employ full backup solutions: For complete peace of mind, full-disk imaging tools such as Windows Backup or third-party solutions create backups of everything on your hard drive.

You can protect your data further with NinjaOne’s backup management software solution.

Learn more about it.

Using Windows Command Prompt commands for troubleshooting purposes in Safe Mode

Few tools are as valuable for troubleshooting Windows issues as the Command Prompt, especially when you invoke it from Safe Mode. Safe Mode provides a minimalistic system environment that runs only essential programs and services, making it easier to determine if issues are due to Windows or third-party applications. Below, we’ll go over specific Safe Mode commands to ferret out and fix common problems that may ail your computer.

Check system files with the “sfc /scannow” command

The System File Checker (SFC) can help find corrupted files and other issues with files on your computer. To use it:

  1. Open Command Prompt with administrative privileges.
  2. Type “sfc /scannow” and press Enter.

This will initiate an extensive sweep of your system files, hunting for issues and repairing corrupt files along its path. If SFC discovers a damaged file, it will use the file caches and copies stored within your Windows folder to mend them. Once the scan completes, you’ll be presented with a detailed report that lists any unresolvable issues.

Run a virus scan using Windows Defender or antivirus software

Viruses and malware are often at the root of many system disturbances. Running an exhaustive virus scan should top your troubleshooting checklist.

  1. Open your preferred antivirus program — or Windows Defender if no other is installed — from the Command Prompt.
  2. Start the scan with the appropriate command provided by your antivirus solution, or trigger a full-system scan in Windows Defender with a command such as “MpCmdRun.exe -scan -scantype 2”.

Resolve driver conflicts with the “driverquery” command

Conflicting drivers can be insidious catalysts for Windows instability issues. To find the source of these conflicts:

  1. Fire up Command Prompt as an administrator.
  2. Type in the “driverquery” command and press Enter. Command Prompt will display a list of the drivers installed on your operating system.
  3. Update any troublesome drivers by downloading them from the manufacturer’s website. Because Safe Mode lacks internet connectivity, you’ll need to do this outside Safe Mode (either using Safe Mode with Networking or Windows’ normal mode).
  4. Alternatively, consider rolling back the system to a previous state without driver conflicts.

How Safe Mode helps deal with system issues

When faced with a computer in distress, the option to start Safe Mode with Windows Command Prompt is a powerful and essential troubleshooting strategy. This article has discussed the importance of the Command Prompt in managing system functions hands-on, especially for starting Safe Mode, a restricted environment to isolate and resolve complex issues. Whether you access Safe Mode with Command Prompt via Advanced Startup Options, msconfig, or alternative methods, you can effectively use the Windows Command Prompt to diagnose and address underlying problems, helping maintain system health and stability.

Use NinjaOne to manage and secure all your endpoints

For more help dealing with system issues, consider using a powerful, flexible, and robust endpoint management tool like NinjaOne. The NinjaOne endpoint management software helps IT departments control and monitor the devices being used within an organization. NinjaOne can do everything from software deployment and patch management to monitoring and alerting, helping you stay on top of all your devices.

Источник

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Skachat games for windows 10
  • Opera для windows 10 pro
  • Скрипт на перезапуск службы windows
  • Как сделать свой загрузочный экран windows
  • Индикатор ввода windows 10 не отображается