Skip to content
GEEKnodes

Windows

Windows 11 and 10 Safe Mode: Enter, Fix and Exit

Enter Safe Mode on Windows 11 and 10, fix drivers, updates or malware from inside and get out if your computer gets stuck in it.

Safe Mode starts Windows with the minimum: basic drivers and almost no startup programs. It helps fix a computer that freezes, shows blue screens or runs terribly slow because of a driver, update or program. Here you will see how to enter in each situation, what to do inside and how to exit if it gets stuck.

In short

  • If Windows boots, enter with Shift + Restart › Startup Settings and press 4 or 5.
  • Inside, remove the suspect driver or update, or use System Restore; for malware, Defender’s offline scan is more reliable.
  • If it will not leave Safe Mode, it is almost always msconfig: untick Safe boot or use bcdedit /deletevalue.

The three kinds of Safe Mode

On the Startup Settings screen Windows offers numbered options. These matter:

KeyOptionWhat loadsWhen to use it
4 or F4Enable Safe ModeBasic drivers, no networkRemove drivers, programs or updates
5 or F5Safe Mode with NetworkingThe above plus networkDownload a driver or update definitions
6 or F6Safe Mode with Command PromptConsole only, no desktopWhen the desktop or Explorer fails
Three cards: key 4 minimal Safe Mode, key 5 with networking and key 6 command console only.
Choose 4, 5 or 6 depending on whether you need network or just a console.

The screen shows at low resolution with a black background. That is normal: the generic video driver is used.

How to enter Safe Mode

If Windows boots: Shift + Restart

The quickest way, and it works even from the sign-in screen.

Five-step flow from Shift plus Restart to Startup Settings and keys 4, 5 or 6.
Shift + Restart and three menus take you to Startup Settings.
  1. Open Start › Power.
  2. Hold Shift and click Restart.
  3. On the blue screen go to Troubleshoot › Advanced options › Startup Settings › Restart.
  4. After restarting, press 4, 5 or 6.

Other ways to reach that menu, including classic F8, are in the advanced boot menu guide.

With msconfig (stays on)

  1. Press Windows + R, type msconfig and confirm.
  2. Go to the Boot tab.
  3. Tick Safe boot and choose Minimal (normal Safe Mode) or Network (with networking).
  4. Confirm and restart.

Note: with this method Windows boots into Safe Mode every time until you untick the box. Useful for several restarts in a row, but the number one cause of “trapped” computers.

With bcdedit

The console equivalent, from Terminal as admin:

bcdedit /set {current} safeboot minimal

Use network instead of minimal for networking. Like msconfig, it stays until you remove it.

If Windows will not boot: the recovery environment

When Windows fails to boot twice in a row, on the third try it opens Automatic Repair and from there the recovery environment (WinRE).

  1. Turn on the computer and, as soon as the Windows logo appears, hold the power button until it shuts off.
  2. Repeat a second time.
  3. On the third boot you will see Preparing Automatic Repair. Let it finish.
  4. Click Advanced options › Troubleshoot › Advanced options › Startup Settings › Restart.
  5. Press 4 or 5.

If the disk is BitLocker encrypted, WinRE asks for the recovery key. Have it ready; if you do not know where it is, see where to find the BitLocker key.

If Automatic Repair does not even appear, boot from a Windows install USB and choose Repair your computer.

Signing in in Safe Mode

In Safe Mode the Windows Hello PIN sometimes fails. If the PIN will not let you in, use the account password: with a Microsoft account it is that account’s password, not the PC’s.

What to do inside Safe Mode

Safe Mode fixes nothing by itself. If the problem disappears in Safe Mode, the cause is something not loaded there: a driver, startup program or third-party service. If it persists, it points to hardware or damaged system files.

Uninstall a driver

  1. Press Windows + X and open Device Manager.
  2. Find the suspect device; the graphics card is the most common after a black screen.
  3. Right-click › Uninstall device.
  4. Tick Attempt to remove the driver for this device if shown and confirm.

Back in normal mode, Windows installs a generic or Windows Update driver. Then install the maker’s stable version.

If the problem began after updating a specific driver, under its Properties › Driver there is Roll Back Driver, which is less drastic.

Uninstall an update

  • Windows 11: Settings › Windows Update › Update history › Uninstall updates.
  • Windows 10: Settings › Update & Security › Windows Update › View update history › Uninstall updates.

If Safe Mode will not let you, do it from WinRE: Troubleshoot › Advanced options › Uninstall Updates.

Remove programs

Settings › Apps works, but some uninstallers fail in Safe Mode because the Windows Installer service does not start. If a program will not uninstall, try again in normal mode after disabling its startup under Task Manager › Startup apps.

System Restore

If you have restore points from before the problem, it is the quickest route. Press Windows + R, type rstrui and pick a point dated before the failure. Documents are untouched; programs and drivers installed later are not.

Repair system files

From an admin console, ideally in Safe Mode with Networking:

sfc /scannow
DISM /Online /Cleanup-Image /RestoreHealth
sfc /scannow

DISM downloads good files from Windows Update, hence the network. The second sfc repairs what the first could not.

Scan for malware

In Safe Mode much malware does not load, making removal easier. Even so, Windows’ most reliable option is the Microsoft Defender Offline scan: it restarts into a separate environment and scans before anything boots.

Under Windows Security › Virus & threat protection › Scan options, choose Microsoft Defender Offline scan and click Scan now. Do it from normal mode; the computer restarts on its own.

How to exit Safe Mode

If you entered with Shift + Restart, just restart normally.

If you used msconfig or bcdedit, you must undo it:

  1. Windows + R › msconfig › Boot tab.
  2. Untick Safe boot.
  3. On the General tab, check Normal startup is selected.
  4. Confirm and restart.

Or by console, as admin:

bcdedit /deletevalue {current} safeboot

If you cannot even sign in

When Safe Mode will not let you in (because of the PIN, say) and Windows always boots into it, remove the option from outside:

  1. Force the recovery environment with two shutdowns during boot, or boot a Windows install USB and choose Repair your computer.
  2. Go to Troubleshoot › Advanced options › Command Prompt.
  3. Run:
bcdedit /deletevalue {default} safeboot
  1. Close the console and choose Continue to boot Windows.

From WinRE you use {default} instead of {current}, because the running system then is the recovery one, not your Windows.

If you ever enabled the alternate shell, remove it too with bcdedit /deletevalue {default} safebootalternateshell.

Common mistakes

  • Ticking “Safe boot” and forgetting it. Windows keeps entering Safe Mode every restart.
  • Not having the BitLocker key and getting stuck in WinRE.
  • Choosing the mode without network and then wanting to download a driver or run DISM /RestoreHealth.
  • Installing the new driver inside Safe Mode. Many installers fail there; remove the old one in Safe Mode and install the new one normally.
  • Thinking Safe Mode is an antivirus. It only stops malware from starting; you still have to scan and remove it.

Accessibility preferences

Quick profiles

Text and reading

Text size
Default
Line height
Default
Letter spacing
Default
Word spacing
Default

Colour

Motion and orientation

Cursor