How to Start Safe Mode with Windows Command Prompt

How to start safe mode with Windows command prompt blog banner image

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

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

Check it out.

Is it safe to boot from 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 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.

  • Type “msconfig” into your taskbar search box, and press Enter.
  • In the System Configuration window, move over to the “Boot” tab.
  • Under “Boot options,” check the box next to “Safe boot,” then choose “Alternate shell.”
  • Click “OK” and restart your computer when prompted.

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

  • Pressing F8 or Shift+F8 during system startup will bring up Advanced Boot Options, where you can select Safe Mode. However, you might not be able to start Safe Mode in Windows 10 or 11 using this method due to faster boot times.
  • If you’re unable to access your desktop entirely, consider creating a recovery drive beforehand. This is a dedicated USB drive that contains the necessary tools for system recovery, including navigating straight into Safe Mode with Command Prompt.

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.

Next Steps

Building an efficient and effective IT team requires a centralized solution that acts as your core service deliver tool. NinjaOne enables IT teams to monitor, manage, secure, and support all their devices, wherever they are, without the need for complex on-premises infrastructure.

Learn more about Ninja Endpoint Management, check out a live tour, or start your free trial of the NinjaOne platform.

You might also like

Ready to simplify the hardest parts of IT?
×

See NinjaOne in action!

By submitting this form, I accept NinjaOne's privacy policy.

NinjaOne Terms & Conditions

By clicking the “I Accept” button below, you indicate your acceptance of the following legal terms as well as our Terms of Use:

  • Ownership Rights: NinjaOne owns and will continue to own all right, title, and interest in and to the script (including the copyright). NinjaOne is giving you a limited license to use the script in accordance with these legal terms.
  • Use Limitation: You may only use the script for your legitimate personal or internal business purposes, and you may not share the script with another party.
  • Republication Prohibition: Under no circumstances are you permitted to re-publish the script in any script library belonging to or under the control of any other software provider.
  • Warranty Disclaimer: The script is provided “as is” and “as available”, without warranty of any kind. NinjaOne makes no promise or guarantee that the script will be free from defects or that it will meet your specific needs or expectations.
  • Assumption of Risk: Your use of the script is at your own risk. You acknowledge that there are certain inherent risks in using the script, and you understand and assume each of those risks.
  • Waiver and Release: You will not hold NinjaOne responsible for any adverse or unintended consequences resulting from your use of the script, and you waive any legal or equitable rights or remedies you may have against NinjaOne relating to your use of the script.
  • EULA: If you are a NinjaOne customer, your use of the script is subject to the End User License Agreement applicable to you (EULA).