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
4or5.- 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:
| Key | Option | What loads | When to use it |
|---|---|---|---|
4 or F4 | Enable Safe Mode | Basic drivers, no network | Remove drivers, programs or updates |
5 or F5 | Safe Mode with Networking | The above plus network | Download a driver or update definitions |
6 or F6 | Safe Mode with Command Prompt | Console only, no desktop | When the desktop or Explorer fails |

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.

- Open Start › Power.
- Hold Shift and click Restart.
- On the blue screen go to Troubleshoot › Advanced options › Startup Settings › Restart.
- After restarting, press
4,5or6.
Other ways to reach that menu, including classic F8, are in the advanced boot menu guide.
With msconfig (stays on)
- Press
Windows + R, typemsconfigand confirm. - Go to the Boot tab.
- Tick Safe boot and choose Minimal (normal Safe Mode) or Network (with networking).
- 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).
- Turn on the computer and, as soon as the Windows logo appears, hold the power button until it shuts off.
- Repeat a second time.
- On the third boot you will see Preparing Automatic Repair. Let it finish.
- Click Advanced options › Troubleshoot › Advanced options › Startup Settings › Restart.
- Press
4or5.
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
- Press
Windows + Xand open Device Manager. - Find the suspect device; the graphics card is the most common after a black screen.
- Right-click › Uninstall device.
- 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:
Windows + R›msconfig› Boot tab.- Untick Safe boot.
- On the General tab, check Normal startup is selected.
- 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:
- Force the recovery environment with two shutdowns during boot, or boot a Windows install USB and choose Repair your computer.
- Go to Troubleshoot › Advanced options › Command Prompt.
- Run:
bcdedit /deletevalue {default} safeboot
- 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.



