Restart Windows directly into BIOS/UEFI setup
One command reboots the PC straight into the firmware settings screen, no keyboard-mashing at startup needed.
01Command
$ shutdown /r /fw /t 002What it does
The /r switch restarts the computer, and /fw tells Windows to land in the firmware (BIOS/UEFI) setup interface instead of the operating system. /t 0 means restart immediately. This is much easier than pausing boot to press F2, Del, or Esc, and works the same on every PC manufacturer.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- shutdown (Windows Commands)Evidence: Documents /r (restart the computer) and /fw (combined with /r, restart to the UEFI/BIOS firmware interface) on the official shutdown reference page.
- Shutdown.exe - Shutdown the computerEvidence: Lists the /fw switch for restarting to the firmware (BIOS/UEFI) setup interface, alongside /r and /t.
Last verified: 2026-09-19 · Category: System & Settings
06Related solutions
Purge cached DNS lookups so Windows re-resolves hostnames from scratch — the fix for 'the new server is live but my browser still hits the old one'.
One command that shows OS version, install date, boot time, memory, network adapters and installed hotfixes.
Built-in Windows command to compute MD5, SHA1 or SHA-256 hashes of any file.