Windows Server 2022: How to boot into Safe Mode

To start Windows Server 2022 in Safe Mode, restart through Advanced startup on the Recovery screen and choose a mode from Startup Settings. Safe Mode loads essential drivers and services, which helps narrow down problems that occur during a normal startup.

Before restarting

For a production server, schedule downtime and save your work. Remote Desktop (RDP) disconnects during restart and might remain unavailable in Safe Mode. First verify that you can see and control the machine from a physical or hypervisor console.

If BitLocker protects the system drive, have its recovery key ready. Check the administrator credentials you will need to sign in.

Open Startup Settings from Advanced startup

  1. On a server with Desktop Experience, press Windows + I and select Update & Security.
  2. Select Recovery in the left pane.
  3. Under Advanced startup, choose Restart now. If asked for a restart reason, select the reason and continue.
  4. In the Windows Recovery Environment (Windows RE), select Troubleshoot on the Choose an option screen.
  5. Select Advanced options if it appears as a separate entry.
  6. Select Startup Settings.
  7. Select Restart to open the boot choices.

If the Settings entry is unavailable, or if using Server Core, save your work and run this command in an administrator console on the server. It restarts the server immediately to open advanced boot options.

shutdown.exe /r /o /t 0

Microsoft Learn reference for shutdown on Windows Server

Choose a Safe Mode option

In the black Advanced Boot Options screen, select an entry with the arrow keys and press Enter. In the numbered Startup Settings screen, use 4 or F4 for Safe Mode, 5 or F5 for networking, and 6 or F6 for Command Prompt. Follow the instructions on the screen you see.

  • Safe Mode. Starts essential components only. Use it to investigate drivers or services without network access.
  • Safe Mode with Networking. Loads additional network drivers and services. Use it if the diagnosis needs network access and keep your console available in case RDP does not work.
  • Safe Mode with Command Prompt. Opens Command Prompt in place of the usual desktop. Choose it for command-line diagnosis.

Microsoft guide to Windows Startup Settings

Return to a normal startup

The Startup Settings selection applies to one boot. Restart normally after diagnosis and verify the expected services and network connections. If the machine keeps booting into Safe Mode, check whether Safe boot is enabled on the Boot tab of System Configuration (msconfig) on a system with Desktop Experience.

For Active Directory Domain Services (AD DS) recovery on a domain controller, follow the Directory Services Restore Mode (DSRM) procedure and use the corresponding recovery credentials.

Microsoft Learn guidance on restoring a virtualized domain controller