Short answer: To boot safe mode in Windows Server 2019, run msconfig, tick Safe boot on the Boot tab and restart. One bcdedit command does the same. Server won't start? Interrupt the boot three times and choose Startup Settings. We'd keep the installation media as the fallback.
To boot Windows Server 2019 in safe mode, open msconfig, tick Safe boot on the Boot tab and restart. When the server no longer starts, we interrupt the boot three times to reach the recovery environment and pick Startup Settings. Installation media is the fallback.
With a minimal set of drivers loaded, we can take a bad driver or update out.
- msconfig: Boot tab, Safe boot, restart; the server stays in safe mode until you clear it.
- bcdedit: one command that sets safe boot for the next start.
- Startup Settings: Shift + Restart, Troubleshoot, Advanced options, Startup Settings; the same screens as on Windows 11 and Windows 10.
- Recovery environment: three interrupted boots when the server won’t start.
- Installation media: boot from it and use Repair your computer.

| Situation | Way in | Does it stick? |
|---|---|---|
| Server still boots | msconfig or bcdedit, then restart | Yes, until you undo it |
| Server half-boots | F8 during startup, or Shift + Restart from the sign-in screen | No |
| Server doesn’t boot | Three interrupted boots, then Startup Settings | No |
| Nothing else works | Installation media and bcdedit | Yes |
Remote Desktop doesn’t work in safe mode by default. Line up iLO, iDRAC, a hypervisor console or a physical keyboard first.
What safe mode is on Windows Server 2019, and when you need it
A diagnostic startup that loads only core drivers and services. Third-party drivers, most startup programs and nonessential services stay off. So a server that crashes or hangs during a normal start can often still reach a desktop.
Think of it as a stripped-down rescue environment for your Windows Server 2019 host. The typical reasons we reach for it:
- A cumulative update or a driver update leaves the server in a reboot loop.
- A new RAID, NIC or GPU driver triggers a blue screen on every start.
- A third-party service hangs the boot. Backup agents, antivirus and monitoring are the usual ones.
- Malware blocks normal startup, or reinfects as soon as Windows loads.
- A domain controller needs offline maintenance in Directory Services Restore Mode.
Safe mode has limits. It won’t repair a failed disk or a broken RAID set. And damaged boot files stop Windows before safe mode can even load. For those, the installation media section is the place to go.
Before you start
- Console access. iLO, iDRAC, a hypervisor console or a keyboard and screen.
- A local administrator password that works without the domain.
- The DSRM password, if the server is a domain controller.
- A checkpoint or a Windows Server backup, where the platform offers one.
- The time of the last change. Update, driver or new software.
That last point saves the most time. In safe mode you’ll be hunting for whatever changed right before the trouble started.
Which option to pick
- Plain Safe Mode, called Minimal, for driver and service problems.
- Safe Mode with Networking when you need to copy files or download a fix.
- Safe Mode with Command Prompt on Server Core, or when Explorer itself fails.
- Active Directory repair for domain controllers only.
| Option | msconfig name | bcdedit command | Use it for |
|---|---|---|---|
| Safe Mode | Minimal | bcdedit /set {default} safeboot minimal |
Drivers, services, updates |
| Safe Mode with Networking | Network | bcdedit /set {default} safeboot network |
Downloading drivers, copying logs, network shares |
| Safe Mode with Command Prompt | Alternate shell | bcdedit /set {default} safeboot minimal plus bcdedit /set {default} safebootalternateshell yes |
Server Core, broken Explorer |
| Directory Services Restore Mode | Active Directory repair | bcdedit /set {default} safeboot dsrepair |
Domain controller database repair |
How to boot safe mode in Windows Server 2019 with msconfig
The fastest and most predictable route while the server still starts.
- Sign in with a local or domain administrator account.
- Press Win + R, type
msconfigand press Enter. - Open the Boot tab.
- Tick Safe boot and select the option you need.
- Click Apply, then OK, then Restart.

The server boots into safe mode. It keeps doing so until you untick Safe boot.
The command-line way
Same result from an elevated Command Prompt, and it works over PowerShell remoting too:
bcdedit /set {default} safeboot minimal
shutdown /r /t 0
Swap the last word of the first line for network when you need networking.
Make sure you have console access before you set safe boot on a remote server. A machine you can only reach over Remote Desktop becomes unreachable. Someone at the console has to switch it back.
Startup Settings from the sign-in screen or the desktop
This is a one-time choice, unlike msconfig. The next ordinary restart goes back to normal mode. On a remote machine we’d call it the safer option.
- On the sign-in screen, click the power icon. Hold Shift and click Restart.
- Choose Troubleshoot, then Advanced options, then Startup Settings.
- Click Restart.
- Press the number for the mode you want.
| Key | Mode |
|---|---|
| 4 | Safe Mode |
| 5 | Safe Mode with Networking |
| 6 | Safe Mode with Command Prompt |
From a running session this command does the same as Shift and Restart:
shutdown /r /o /t 0
The server restarts straight into the recovery environment. From there the menus are the same.
F8, and why it rarely works
F8 works only under two conditions. The boot menu policy is Legacy, and the firmware gives Windows time to read the key. Check the policy first:
bcdedit /enum {current}
Does bootmenupolicy show Standard? Switch it while the server still boots:
bcdedit /set {default} bootmenupolicy legacy
- Restart the server. Start tapping F8 right after the firmware screen disappears.
- In Advanced Boot Options, pick the mode with the arrow keys.
- Press Enter.
Fast UEFI systems often miss the keypress anyway. Shift + F8 rarely works on modern hardware, because the window is too short. On remote consoles the key often arrives late as well.
Setting the Legacy policy in advance is the only reliable way to make F8 part of a recovery plan. The price is slightly slower reboots, because Windows waits for the key.
Is safe mode F2 or F8?
F8, and only with the Legacy policy from above. F2 belongs to the firmware, not to Windows.
| Key at power-on | What it opens |
|---|---|
| F8 | Windows Advanced Boot Options with safe mode, when the boot menu policy is Legacy |
| F2 | System Setup (BIOS or UEFI) on Dell PowerEdge and many other boards |
| F9 | System Utilities on HPE ProLiant |
| F11 | The one-time boot menu on Dell and HPE servers, handy for booting the installation media |
| 4, 5 or 6 | The safe mode choices on the Startup Settings screen; F4, F5 and F6 do the same there |
When the server won’t start at all
Interrupt the boot at the Windows logo three times in a row. The next start opens Automatic Repair.
- Power on the server.
- When the Windows logo or the spinning dots appear, hold the power button until it switches off. On a VM, reset it.
- Repeat twice more. On the next start Windows shows Preparing Automatic Repair.
- On the Automatic Repair screen, choose Advanced options.
- Go to Troubleshoot, Advanced options, Startup Settings, then Restart.
- Press 4, 5 or 6.
Hard power-offs are rough on disks and databases. Use this only when the server is already broken. On physical hardware with a RAID controller, we’d use the reset in iLO or iDRAC, not the power button.
Installation media as the way in
Startup Settings isn’t offered when you boot from media. So bcdedit is the way in.
- Attach the Windows Server 2019 ISO and boot from it. Virtual media, a DVD or a USB stick.
- On the Windows Setup screen, click Next, then Repair your computer.
- Choose Troubleshoot, then Command Prompt.
- Run the command below.
- Type
exit, choose Continue and remove the media.
bcdedit /set {default} safeboot minimal
The installed server then starts in safe mode.
Damaged boot files
The same Command Prompt helps when the boot files themselves are broken. On BIOS systems:
bootrec /fixmbr
bootrec /rebuildbcd
And to recreate the boot files:
bcdboot C:\Windows
No media at hand? Our guide to creating a bootable USB drive uses the same approach. For a server, write the Windows Server 2019 ISO to the stick.
Remote and virtual servers
On remote hardware, use the out-of-band console to see the boot screen and send keys. HPE iLO, Dell iDRAC, Lenovo XClarity or IMM.
Over PowerShell remoting, while the server still answers
Enter-PSSession -ComputerName SRV01
bcdedit /set {default} safeboot network
Restart-Computer -Force
Networking keeps file shares and pings working. Do the repair from the console. Then clear the flag, with the command in the exit section below.
Virtual machines
- Take a checkpoint or snapshot before touching boot settings.
- Open the VM console in Hyper-V Manager or the vSphere Client, and use any method above.
- Mount the ISO directly to the VM for the installation media method.
- Hyper-V Generation 2 VMs boot fast. Shift + Restart or bcdedit beats F8 there.
The same goes for VMware and Proxmox consoles.
A VMware guest boots too fast for F8? Shut the VM down, open Edit Settings, then VM Options and Boot Options. Raise Boot Delay to a few thousand milliseconds. Now there’s time to click into the console and press the key.
Normally manage the box over Remote Desktop? Our article on enabling RDP on Windows Server covers getting it back once the server is in normal mode.
Windows Server 2019 safe mode on Server Core
Server Core has no msconfig. Use bcdedit, and add the alternate shell for a command prompt:
bcdedit /set {default} safeboot minimal
bcdedit /set {default} safebootalternateshell yes
Restart, do the work, and remove both values afterwards.
What doesn’t run in safe mode
Safe mode loads a minimal set of drivers and services. Server roles stay down, so clients lose access while you work.
| Role or service | In safe mode |
|---|---|
| IIS websites | Stopped |
| SQL Server instances | Stopped |
| Active Directory Domain Services | Stopped; a domain controller uses Directory Services Repair Mode |
| File shares and remote access | Only with Safe Mode with Networking |
The Startup Settings tile can be absent from the Advanced options screen. It happens when the server starts from installation media.
In that case we’d open Command Prompt there and set safe boot with the bcdedit lines shown earlier.
What to do once you’re in
Find the change that broke normal startup, and undo it. Fix one thing at a time. Restart normally to test.
- Event Viewer. Open
eventvwr.msc. Read the System and Application logs, filtered to Critical and Error around the failure time. - Drivers. Device Manager, Properties, Driver, Roll Back Driver. Or uninstall the device and its driver.
- Updates. Control Panel, Programs, View installed updates. Some removals finish only during the next normal restart, so expect an extra reboot.
- Services. In
msconfig, open Services and tick Hide all Microsoft services. Disable the third-party ones that remain, then re-enable them one by one. - Malware. Run a Microsoft Defender scan, and check scheduled tasks and Run keys.
- System files. SFC first, then DISM. DISM needs networking or a source.
- Disk. A disk check gets scheduled for the next restart. Look at the RAID controller logs for failing drives too.
The commands for those steps, in the same order:
Get-HotFix | Sort-Object InstalledOn -Descending | Select-Object -First 10
wusa /uninstall /kb:NUMBER
"%ProgramFiles%\Windows Defender\MpCmdRun.exe" -Scan -ScanType 2
sfc /scannow
DISM /Online /Cleanup-Image /RestoreHealth
chkdsk C: /f /r
| Line | What it does |
|---|---|
| 1 | Lists the ten newest updates |
| 2 | Removes one update, by its KB number |
| 3 | Starts a Microsoft Defender scan |
| 4 | Checks and repairs system files |
| 5 | Repairs the component store |
| 6 | Schedules a disk check |
On a domain controller, database work with
ntdsutilbelongs in Directory Services Restore Mode. You sign in there with the local DSRM password. A domain account won’t work. We’d have that password documented long before it’s needed.
Leaving safe mode on Windows Server 2019
| How you got in | How to get out |
|---|---|
| msconfig | Untick Safe boot on the Boot tab, restart |
| bcdedit or installation media | Delete the safeboot value, restart |
| Startup Settings or F8 | Nothing; a normal restart clears it |
bcdedit /deletevalue {default} safeboot
bcdedit /deletevalue {default} safebootalternateshell
shutdown /r /t 0
The second line is only for the alternate shell. Run them from an elevated Command Prompt in safe mode.
Stuck in a safe mode loop? The safeboot flag is still set, almost always. Run the same commands from safe mode, or from the recovery Command Prompt.
Before the server goes back to production
Watch it for at least half an hour after the first normal boot. Check that the services set to Automatic are running:
Get-Service | Where-Object Status -ne Running
Check that applications and shares respond. Look for new errors in Event Viewer. And write down the cause and the fix, for the next engineer on call.
After safe mode: repair or replace Windows Server 2019
Safe mode repairs keep an existing server running. A host that keeps breaking after updates is often a sign to plan a move to a newer Windows Server release. Often that move is simpler than the next repair.
Our overview of Windows Server editions and keys lists the current versions, if you’re pricing a replacement such as Windows Server 2025 Standard.
Quick answers
| Question | Short answer |
|---|---|
| How do you boot Windows Server 2019 into safe mode with networking? | In msconfig, tick Safe boot and choose Network. |
| Can you use Remote Desktop in safe mode on Windows Server 2019? | Not by default. |
| Why does my server keep booting into safe mode? | Because the safeboot flag from msconfig or bcdedit stays until you remove it. |
| Does F8 work on Windows Server 2019? | Only if the boot menu policy is Legacy and the firmware is slow enough to catch the key. |
| How do you start safe mode on Server Core? | Server Core has no msconfig. |
| What is Directory Services Restore Mode? | It’s the safe mode variant for domain controllers, used for Active Directory database repair and restore. |
| Is it safe to force the server off three times to reach recovery? | It works, but hard power-offs can damage open files and databases. |
Related guides
FAQ
How do I boot Windows Server 2019 into safe mode with networking?
In msconfig, tick Safe boot and choose Network. Or set safeboot to network with bcdedit and restart. From Startup Settings, press 5. Networking lets you copy logs and reach file shares. Remote Desktop still doesn't work by default.
Can I use Remote Desktop in safe mode on Windows Server 2019?
Not by default. The Remote Desktop service doesn't start in safe mode. So we'd line up iLO, iDRAC, a hypervisor console or a physical keyboard before setting safe boot on a remote server.
Why does my server keep booting into safe mode?
Because the safeboot flag from msconfig or bcdedit stays until you remove it. Untick Safe boot in msconfig. Or delete the safeboot value with bcdedit, then restart.
Is safe mode F2 or F8 on Windows Server?
F8, and only when the boot menu policy is set to Legacy. F2 opens the firmware setup on Dell PowerEdge and many other boards, not a Windows menu. On the Startup Settings screen, press 4, 5 or 6 for the three safe mode choices.
Does F8 work on Windows Server 2019?
Only if the boot menu policy is Legacy and the firmware is slow enough to catch the key. Check the policy with bcdedit. We'd set it to legacy while the server still boots.
How do I start safe mode on Server Core?
Server Core has no msconfig. Set safeboot to minimal with bcdedit. For a command prompt shell, set the alternate shell value as well, then restart. Remove both values afterwards.
What is Directory Services Restore Mode?
It's the safe mode variant for domain controllers, used for Active Directory database repair and restore. Choose Active Directory repair in msconfig. With bcdedit, the safeboot value is dsrepair. You sign in with the DSRM password.
Is it safe to force the server off three times to reach recovery?
It works, but hard power-offs can damage open files and databases. Use it only when the server already fails to start. We'd prefer an iLO, iDRAC or VM reset over pulling power.
