Windows 11 Reboot to BIOS: The Real Command
In this article
There is no single Windows 11 command that directly reboots into the BIOS, but the closest built-in method is shutdown /r /fw /t 0 run from Command Prompt or PowerShell. This command tells Windows to restart and, on the next boot, enter the firmware settings (UEFI/BIOS) instead of loading the operating system. Below is everything you need to know about using this command, why it exists, and what to do when it does not work.
Why Windows Has No Direct "BIOS" Command
Modern PCs use UEFI (Unified Extensible Firmware Interface) instead of the legacy BIOS, and UEFI is a separate piece of software stored on a chip on the motherboard. Windows cannot "open" the BIOS like an application because the firmware runs before the OS loads. The shutdown /r /fw command works by setting a special flag in the Windows boot configuration that tells the firmware to launch its setup screen on the next restart. This is a deliberate design: the OS hands control to the firmware, which then shows its own interface.
This flag is part of the UEFI specification, and Microsoft exposes it through the shutdown.exe utility. The command does not exist in older Windows 7 or Windows 8 systems because those versions predate the wide adoption of UEFI's "boot to firmware" feature. Windows 11 requires UEFI, so the flag is always available on compatible hardware.
How to Use the Command Correctly
Open Command Prompt, PowerShell, or Windows Terminal with administrative privileges. You do not strictly need admin rights for this command, but some systems may require them depending on security policies. Type the following and press Enter:
shutdown /r /fw /t 0
- /r – restarts the computer
- /fw – tells the firmware to enter setup mode on the next boot
- /t 0 – sets the time delay to zero seconds, so the restart happens immediately
If you want a short delay to save your work, replace the 0 with a number of seconds, for example /t 10 for ten seconds. You can also combine it with a comment for other users: shutdown /r /fw /t 30 /c "Entering BIOS". The /c flag adds a message that displays on the shutdown screen.
After the restart, the screen will show the UEFI/BIOS setup utility. This is usually a blue or gray interface with mouse or keyboard navigation, depending on your motherboard manufacturer. From there, you can change boot order, enable virtualization, adjust fan curves, or update firmware settings.
What to Do When the Command Fails
The /fw flag only works if your system is in UEFI mode. If your Windows installation was set up in legacy BIOS (CSM mode), the command will restart but boot straight back into Windows, ignoring the flag. You can check your firmware mode by opening System Information (run msinfo32), then looking at the "BIOS Mode" line. If it says "Legacy", the command will not work.
Another common failure is when the motherboard manufacturer does not implement the UEFI "boot to firmware" feature correctly. Some older UEFI implementations from around 2012–2015 ignore the flag. In that case, you have two alternatives:
- Use the Shift+Restart method: hold the Shift key while clicking Restart in the Start menu. This opens the Windows Recovery Environment, then go to Troubleshoot > Advanced Options > UEFI Firmware Settings.
- Press the dedicated BIOS key during startup. Common keys are Del (most desktop motherboards), F2 (many laptops), F10 (HP), F12 (Dell), and Esc (some Lenovo models). You must press the key repeatedly as soon as the PC powers on, before the Windows logo appears.
If your system is in Legacy mode and you want to switch to UEFI, you will need to convert the disk partitioning from MBR to GPT and enable UEFI in the BIOS. This is a more involved process and may require reinstalling Windows or using a conversion tool like mbr2gpt.exe built into Windows 11.
Comparing the Command to Other Methods
There are three main ways to enter the BIOS in Windows 11, and each has trade-offs.
- Command line (
shutdown /r /fw) – fastest if you are already at a terminal; ideal for scripting or remote administration. It requires typing a command and remembering the flags. - Shift+Restart menu – no typing required, works from the Start menu, and also gives access to Safe Mode and other recovery options. It takes a few extra clicks.
- Physical BIOS key – works even if Windows is broken or not installed, but requires timing and knowing the correct key for your motherboard. It does not work if Fast Startup is enabled and you use a soft restart from Windows.
For most users, the Shift+Restart method is the most reliable because it does not depend on the /fw flag being supported. The command line method is best for power users who are already in a terminal or want to automate the process. The physical key is the fallback when Windows cannot boot at all.
Common Misconceptions About the Command
A frequent misunderstanding is that shutdown /r /fw will damage your system or that it is a hidden "backdoor" command. It is not. It is a documented Windows feature that simply sets a UEFI variable. Microsoft's official documentation for shutdown.exe lists /fw as a valid flag, and it has been present since Windows 8. It is safe to use, and it does not change any BIOS settings; it only opens the firmware interface.
Another misconception is that you need to disable Secure Boot or Fast Startup for the command to work. Fast Startup affects how Windows shuts down, but the /r flag performs a full restart, which bypasses Fast Startup. Secure Boot does not interfere with the UEFI firmware setup screen. If the command does not work, the issue is almost always legacy BIOS mode or a firmware implementation that does not support the flag.
Some users also think the command will work from the login screen. It will, as long as you can open a command prompt. At the login screen, click the power icon, hold Shift, and click Restart to get the recovery environment, or press Win+R to open the Run dialog and type cmd. From there, the same shutdown command works.
Safety and Precautions
Entering the BIOS is safe, but changing settings inside it can make your system unbootable. The command itself only opens the firmware setup; it does not alter any settings. Once you are in the BIOS, avoid changing anything unless you know what it does. Common mistakes include disabling Secure Boot, changing the boot order to a non-bootable drive, or altering voltage settings. If you are unsure, take a photo of the current settings with your phone before making changes.
If you do make a change that prevents Windows from booting, you can usually reset the BIOS by removing the CMOS battery on a desktop, or by using the "Load Defaults" option in the firmware setup. On laptops, the reset procedure varies by manufacturer, so check the manual. The shutdown /r /fw command will not help you recover from a bad BIOS setting because the firmware may not reach the setup screen if it fails POST (Power-On Self-Test).
One more precaution: do not run the command while you have unsaved work in other applications. The /t 0 flag restarts immediately, and Windows will not prompt you to save. Use a delay like /t 30 if you need time to save files, or run it only when you are ready to restart.
Frequently Asked Questions
Can I use this command in Windows PowerShell?
Yes. PowerShell recognizes the same shutdown.exe utility, so typing shutdown /r /fw /t 0 works exactly the same as in Command Prompt. You can also use the PowerShell alias restart-computer but that cmdlet does not have a firmware flag, so stick with the shutdown command.
Does the command work on all Windows 11 PCs?
No. It works on any PC that runs Windows 11 in UEFI mode and whose motherboard firmware implements the "boot to firmware" UEFI protocol. Most PCs from 2015 onward support it. If your PC is in legacy BIOS mode, or if the firmware is non-compliant, the command will not enter the BIOS.
What is the difference between BIOS and UEFI?
BIOS is the older firmware standard from the 1980s, limited to 16-bit mode, 2.2 TB disk support, and a text-only interface. UEFI is the modern replacement, supporting 64-bit mode, larger disks, a graphical interface, Secure Boot, and faster boot times. Windows 11 requires UEFI, so every compatible PC uses it, even if the manufacturer still calls the setup screen "BIOS".
Can I reboot into BIOS from a remote desktop session?
Yes, if you have command-line access to the remote machine. The shutdown command runs locally on the remote PC, so it will restart that machine and enter its BIOS. However, you will lose the remote connection during the restart, and you will not be able to see the BIOS screen unless you have out-of-band management like Intel AMT or a KVM-over-IP setup.
Is there a way to enter BIOS without restarting?
No. The BIOS runs before Windows, so you must restart the computer to access it. There is no software that can open the firmware interface while the OS is running. The shutdown /r /fw command is the fastest way to restart directly into the setup screen, but a restart is always required.