To boot into Safe Mode in Windows 11, go to Settings > System > Recovery, select Restart now next to Advanced startup, then choose Troubleshoot > Advanced options > Startup Settings > Restart and press 4 or F4. If you can't reach Settings, hold Shift while you select Power > Restart on the sign-in screen, which opens the same menu.
Safe Mode starts Windows "in a basic state, using a limited set of files and drivers", in Microsoft's words. If a problem disappears in Safe Mode, the cause is something that normally loads at startup: a driver, a startup program or a service. If it's still there, the cause is more likely in Windows itself or the hardware.
Before you start: if the PC is encrypted with BitLocker or device encryption, have the recovery key ready. Microsoft notes you'll need it to complete this. See the FAQ below for where to find it.
Method 1: from Settings (Windows is working)
- Open Settings > System > Recovery.
- Next to Advanced startup, select Restart now, and confirm.
- The PC restarts into a blue "Choose an option" screen. This is the Windows Recovery Environment (WinRE).
- Select Troubleshoot > Advanced options > Startup Settings > Restart.
- After the restart you get a numbered list. Press the number or function key for the mode you want (table below).
On Windows 10 the same button is under Settings > Update & Security > Recovery.
Which Safe Mode option to pick
| Key | Option | Use it when |
|---|---|---|
| 4 or F4 | Safe Mode | Removing a driver or program, scanning for malware offline. The default choice. |
| 5 or F5 | Safe Mode with Networking | You need to download a driver or tool. Adds the network drivers and services. |
| 6 or F6 | Safe Mode with Command Prompt | The desktop itself won't load. Opens a command prompt window instead of the usual interface. |
| Enter | Start Windows normally | You changed your mind. |
Method 2: Shift + Restart (from the sign-in screen)
This works when you can see the sign-in screen but can't get to the desktop, and also from the Start menu. Hold Shift and select Power > Restart, keep holding Shift until the "Choose an option" screen appears, then continue from step 4 of Method 1. Microsoft's recovery environment page lists this as one of the standard ways in.
Method 3: from Command Prompt or PowerShell
shutdown /r /o /t 0
/r restarts, and /o "goes to the Advanced boot options menu and restarts the device"; Microsoft's reference says /o must be used with /r. /t 0 removes the default 30-second countdown. Save your work first: this closes everything. You land on the same "Choose an option" screen, so continue from step 4 of Method 1.
Method 4: when Windows won't start (black or blank screen)
If Windows fails to start correctly several times, it opens the recovery environment by itself. You can trigger that deliberately. Microsoft's instructions: interrupt startup twice by turning the PC off while the Windows logo is showing, and on the third start the Automatic Repair screen appears.
- Power on. When the manufacturer or Windows logo appears, hold the power button until the PC turns off.
- Repeat once more.
- Power on a third time and let it run. Wait for Automatic Repair or "Preparing Automatic Repair".
- Select Advanced options, then Troubleshoot > Advanced options > Startup Settings > Restart.
Forced power-offs are not good for a running system, so use this only when the other methods aren't available. A USB recovery drive, if you made one, boots straight into the same recovery environment without the power-button routine.
Method 5: msconfig or bcdedit (Safe Mode on every boot)
The first four methods affect one restart only. These two set a flag that keeps booting Safe Mode until you remove it, which is useful when a fix takes several restarts, and a trap if you forget.
System Configuration (msconfig)
- Press Windows+R, type
msconfig, press Enter. - On the Boot tab, tick Safe boot and pick Minimal (normal Safe Mode) or Network (with networking).
- Select OK and restart.
bcdedit (administrator Command Prompt)
bcdedit /set {current} safeboot minimal
The built-in help (bcdedit /? TYPES OSLOADER) lists the values for safeboot as Minimal, Network or DsRepair; network gives Safe Mode with Networking. In PowerShell, quote the identifier: "{current}". Microsoft's BCDEdit reference warns that it needs administrator rights, that wrong boot settings can make a computer unbootable, and recommends Startup Settings or msconfig instead where possible. Treat it as the scripted option, not the first one to reach for.
How to get out of Safe Mode
If you used Methods 1 to 4, just restart: the next boot is normal. If Windows keeps returning to Safe Mode, a persistent flag is set. Microsoft's fix: press Windows+R, run msconfig, and on the Boot tab clear Safe boot, then restart. If you set it with bcdedit, remove it the same way from an administrator prompt:
bcdedit /deletevalue {current} safeboot
What to do once you're in Safe Mode
- Roll back or uninstall a driver. Device Manager > right-click the device > Properties > Driver > Roll Back Driver, or Uninstall device.
- Uninstall a recently installed program from Settings > Apps > Installed apps.
- Disable startup programs in Task Manager > Startup apps, then restart normally and re-enable them one at a time to find the culprit.
- Run a malware scan with Microsoft Defender; malware that starts with Windows may not be running in Safe Mode.
- Uninstall a Windows update: from the recovery environment, Troubleshoot > Advanced options has an Uninstall Updates entry.
Some things don't work in Safe Mode by design. For example, System Information can't show hardware details there, according to Microsoft. If a program is frozen rather than the whole system, you don't need Safe Mode at all; see how to force quit a frozen program. And if the recovery key prompt is what's stopping you, BitLocker vs FileVault explains where the key comes from and how to check whether your drive is encrypted.
Frequently asked questions
- Does pressing F8 at startup still open Safe Mode in Windows 11?
- Not by default. Since Windows 8 the boot menu policy is Standard, and Microsoft's BCDEdit documentation says that with this policy the F8 key is ignored during boot. Use Shift+Restart, Settings > System > Recovery, or shutdown /r /o instead.
- Why is Windows asking for a BitLocker recovery key when I try Safe Mode?
- On encrypted devices, Microsoft says you need the BitLocker key to open Startup Settings from the recovery environment. The key is a 48-digit number; if you signed in with a Microsoft account, you can usually find it at aka.ms/myrecoverykey from another device. Match the key ID shown on screen to the one on the page.
- Can I use the internet in Safe Mode?
- Only if you choose option 5 or F5, Safe Mode with Networking, which adds the network drivers and services needed to reach the internet and other computers on your network. Plain Safe Mode (option 4) has no network access.
- What is the difference between Safe Mode and the recovery environment?
- The Windows Recovery Environment (WinRE) is a separate, minimal system with repair tools: Startup Settings, Command Prompt, Uninstall Updates, UEFI Firmware Settings and System Image Recovery. Safe Mode is your normal Windows installation started with a limited set of drivers and services. You usually pass through WinRE to reach Safe Mode, by choosing Startup Settings there.