guide · static export
PC · boot

Boot into Safe Mode and Get Back Out Again

Safe mode is a boot configuration flag, not a hidden menu. Set it for one boot, do the repair, and delete the flag again — otherwise the machine keeps starting with half the drivers missing.

by@guidox updated:10/31/26 time:15 min level:Intermediate tested on:Windows 11 24H2 works on:Windows 10, Windows 11, Windows Server 2019 tools:Command Prompt as administrator, System Configuration
TL;DR

Set **bcdedit /set {current} safeboot minimal**, reboot, and remove the flag with **bcdedit /deletevalue {current} safeboot** when the work is done. **msconfig** shows the same setting in a checkbox.

Before you start

Requirements

  • Admin rights
  • A working keyboard at boot
  • 15 minutes
Step by step

Instructions

01

Back up the boot entry first

**bcdedit /enum {current}** prints the entry you are about to change, and **/export** stores the whole configuration. A typo in the identifier here costs more time than the backup takes.

bcdedit /enum {current}
bcdedit /export C:\bcd-before-safemode
Get-Item C:\bcd-before-safemode | Select-Object Name,Length
02

Set the flag for the next boot only

**safeboot** with the value **minimal** loads the basic driver set without networking; **network** adds the network stack. Either way the change takes effect at the next restart.

bcdedit /set {current} safeboot minimal
bcdedit /enum {current} | findstr /i "safeboot description"
shutdown /r /t 5
⚠ warningThe flag stays in the entry until it is deleted. If the repair fails and you reboot again, you land in safe mode a second time.
03

Use the recovery menu when Windows will not start

Shift and Restart, or three failed boots, open the recovery environment. Startup Settings then offers the same safe mode variants without any command line.

shutdown /r /o /t 5
:: Troubleshoot > Advanced options > Startup Settings > Restart
:: press 4 for safe mode, 5 for safe mode with networking
04

Do the repair while the driver set is minimal

Safe mode is for removing a driver, uninstalling software or resetting a policy that blocks normal boot. Check which mode you are in before you start, because network features may be absent.

Get-CimInstance Win32_ComputerSystem | Select-Object BootupState,Model
Get-CimInstance Win32_BootConfiguration | Select-Object Name,BootDirectory
Get-Service | Where-Object Status -eq 'Running' | Measure-Object
05

Remove the flag and reboot normally

**/deletevalue** removes the setting, and the next boot is a standard one. Verify with the same enum command: the safeboot line must be gone.

bcdedit /deletevalue {current} safeboot
bcdedit /enum {current} | findstr /i "safeboot"
shutdown /r /t 5
tipmsconfig does the same thing: Boot tab, tick Safe boot, apply. Clearing the tick writes the same deletevalue call.
06

Break the loop when it keeps starting in safe mode

A leftover flag, a failed update or a stuck pending operation can keep the machine in the reduced state. Check the entry, the pending rename operations and the Setup log before editing anything else.

bcdedit /enum ALL | findstr /i "safeboot identifier"
Get-ItemProperty 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager' -Name PendingFileRenameOperations -ErrorAction SilentlyContinue
Get-WinEvent -LogName Setup -MaxEvents 20 | Select-Object TimeCreated,Id,Message
Troubleshooting

Common issues

The PC boots into safe mode again after deletevalue

A second boot entry or a pending update still carries the flag. Run bcdedit /enum ALL and look for safeboot on every entry, not only {current}.

Safe mode has no network

Use minimal's sibling: set the value to network with bcdedit /set {current} safeboot network, or pick option 5 in Startup Settings.

The screen resolution is wrong in safe mode

Safe mode loads the basic display driver at 800x600. That is expected; the normal driver returns after the flag is removed.

Windows asks for a recovery key at boot

A boot configuration change can trigger a recovery prompt on an encrypted volume. Have the key ready before you change bcdedit values.

FAQ

Frequently asked

Does safe mode undo my changes?

No. It only changes which drivers and services load. Anything you delete or uninstall stays that way after the normal boot.

Can I use it to reset a forgotten password?

Not a Microsoft account password. For a local account, safe mode still needs the old password to sign in; the recovery environment is the correct route.

Is safe mode with networking slower?

It loads the network stack and the basic drivers only, so browsing is possible but graphics and audio stay minimal. Use it when the repair needs a download.

How to undo this

Run bcdedit /deletevalue {current} safeboot and reboot. If the entry was damaged, restore the exported store with bcdedit /import C:\bcd-before-safemode from an elevated shell.

Changelog · 1 entry
  1. 2026-10-31
    First version
Interactive version: checklist, feedback, related guides →

Free · no account needed · tracks your progress