Windows 11 Command to Boot to BIOS: The Real Way
In this article
- Why There Is No “BIOS Command” in the Traditional Sense
- How the shutdown /r /fw Command Actually Works
- Step-by-Step: Using the Command Safely
- Why the Command Might Not Work on Your PC
- Alternative Methods: When the Command Fails
- Common Mistakes and Misconceptions
- Safety and Precautions
- Frequently Asked Questions
The direct answer: there is no single Windows 11 command that instantly reboots you into the BIOS. Instead, you use the command shutdown /r /fw /t 0 in an elevated Command Prompt, PowerShell, or Terminal, which tells Windows to restart and enter the firmware settings on the next boot. This works on most UEFI-based systems, but it only functions if your PC is configured for UEFI and the manufacturer hasn't disabled the firmware interface.
Why There Is No “BIOS Command” in the Traditional Sense
Older PCs with legacy BIOS used a simple key press (like Del, F2, or F12) during the power-on self-test (POST) to enter setup. Windows 10 and Windows 11, however, run on modern UEFI (Unified Extensible Firmware Interface) firmware, which replaces the old BIOS. UEFI is a small operating system that runs before Windows loads, and it exposes a standard interface called the UEFI Runtime Services. Windows can call those services to request a reboot into the firmware UI, but there is no built-in command like goto bios because the firmware isn't part of the Windows filesystem. The shutdown /r /fw command is the closest thing to a direct command, and it works by setting a special UEFI variable that tells the firmware to show its setup screen on the next boot.
How the shutdown /r /fw Command Actually Works
When you run shutdown /r /fw /t 0, the Windows shutdown process performs a normal restart, but before it hands control back to the firmware, it calls the SetFirmwareEnvironmentVariable API. This writes a UEFI variable named OsIndications (or similar) that contains a flag for “OS boot to firmware UI.” The UEFI firmware checks this variable during the next boot and, if it sees the flag, it launches the setup screen instead of booting Windows. The /t 0 sets the timeout to zero seconds, so the restart happens immediately. If you omit /t 0, the system waits 30 seconds by default (the same as a normal shutdown command). The command must be run from an elevated prompt—right-click Start and choose “Terminal (Admin)” or “Command Prompt (Admin)”—or you'll get an “Access is denied” error.
Step-by-Step: Using the Command Safely
- Press
Win + Xand select “Terminal (Admin)” or “Command Prompt (Admin)”. If you see a User Account Control prompt, click “Yes”. - Type
shutdown /r /fw /t 0and press Enter. Your PC will immediately restart. - Wait for the screen to go black and then watch for the UEFI setup screen. It may look like a blue or gray menu with options like “Boot,” “Security,” or “Save & Exit.”
- When you're done in the BIOS, choose “Exit” and then “Save Changes and Exit” (or press F10) to reboot normally into Windows.
If you want to cancel a pending restart before it happens (for example, if you accidentally set a long timeout), run shutdown /a in the same elevated prompt. That aborts the shutdown, but it only works before the restart actually begins.
Why the Command Might Not Work on Your PC
The /fw flag is only supported on systems with UEFI firmware. If your PC still uses legacy BIOS (very rare on Windows 11, since Microsoft requires UEFI for Windows 11 installation), the command will fail with an error. Also, some OEMs (like Dell, HP, or Lenovo) may disable the “OS Boot to Firmware UI” feature in their UEFI settings. In that case, the command returns an error or simply reboots normally without showing the BIOS. Another common issue: if you're using a virtual machine (like VMware or VirtualBox), the virtual firmware may not implement the UEFI variable, so the command won't work there either. Finally, if you have Fast Startup enabled (which is the default in Windows 11), the shutdown command might not fully shut down the kernel, but the /r flag forces a full restart, so that shouldn't interfere—but it's worth knowing that a normal “Shut down” from the Start menu does not always reset the firmware state, which is why the command is the reliable method.
Alternative Methods: When the Command Fails
If the command doesn't work, you have several other ways to reach the BIOS from Windows 11:
- Settings app: Open Settings > System > Recovery, then under “Advanced startup” click “Restart now.” After the PC reboots, choose “Troubleshoot” > “Advanced options” > “UEFI Firmware Settings” > “Restart.”
- Shift + Restart: Hold the Shift key while clicking “Restart” in the Start menu. This takes you to the same blue recovery screen, then navigate to Troubleshoot > Advanced options > UEFI Firmware Settings.
- Keyboard key at boot: Power off your PC, then press the power button and immediately tap the BIOS key (Del, F2, F12, Esc, or F10 depending on the manufacturer). This works even if Windows is corrupted, as long as the firmware is intact.
- Create a shortcut: You can make a desktop shortcut that runs the command. Right-click the desktop, choose New > Shortcut, and type
shutdown /r /fw /t 0as the location. Name it “Boot to BIOS” and run it as administrator.
The Settings method is the most user-friendly and doesn't require any command knowledge. The keyboard method is the only one that works if Windows won't boot at all.
Common Mistakes and Misconceptions
Many people search for “Windows 11 command to boot to bios” and expect something like bootrec /fixmbr or msconfig to do it. Those commands are unrelated—msconfig only changes boot options, not firmware settings. Another misconception is that you can type a command inside Windows that directly opens the BIOS without a restart. That's impossible because the BIOS/UEFI runs before Windows, so any method must involve a reboot. Also, some users confuse “BIOS” with “UEFI” and think they need to disable Secure Boot or change boot order—those are all inside the UEFI setup, not in Windows. Finally, a common mistake is running the command without elevation. If you type it in a normal PowerShell window, you'll see “Access is denied” and nothing happens. Always run as admin.
Safety and Precautions
Rebooting to the BIOS is safe—it doesn't modify any Windows files or delete data. However, while you're in the BIOS, be careful not to change settings you don't understand. Incorrectly altering boot order, disabling Secure Boot, or changing voltage settings can prevent Windows from booting or cause hardware instability. If you're just trying to access the BIOS to check something, don't change anything unless you know what you're doing. Write down any original settings before you modify them. Also, if you use the shutdown /r /fw /t 0 command, make sure you've saved all your work because it restarts immediately without warning.
Frequently Asked Questions
Q: Can I use a command to boot to BIOS without restarting?
No. The BIOS runs before Windows, so any command must trigger a restart. The shutdown /r /fw command does that, but it still reboots your PC.
Q: What if my PC doesn't have UEFI?
If you're running Windows 11, your PC must have UEFI (Microsoft requires it). But if you're on an older Windows 10 machine with legacy BIOS, the /fw flag won't work. Use the keyboard key method instead.
Q: Is there a difference between BIOS and UEFI?
Yes. BIOS is the older firmware interface, while UEFI is the modern replacement. Windows 11 only supports UEFI. The command we discussed works with UEFI, not legacy BIOS.
Q: Why does the command say “Access is denied”?
You need to run the command as administrator. Right-click the Start button and choose “Terminal (Admin)” or “Command Prompt (Admin)” before typing the command.
Q: Can I create a one-click shortcut to boot to BIOS?
Yes. Create a desktop shortcut with the target shutdown /r /fw /t 0, then right-click the shortcut, choose Properties, and check “Run as administrator.” Double-click it to reboot into BIOS.
Q: Will the command work if I have BitLocker enabled?
Yes, it will work. BitLocker might prompt for a recovery key after the reboot if you change boot settings, but the command itself doesn't affect encryption.