Technical Anshu
Tutorials Blog
⌨️ Command Explained

Shutdown Command Switches Explained What R FW F and T Really Do

A command you cannot read is a command you cannot trust. This one is short and every letter in it earns its place — here is the full breakdown, including the two switches people add by mistake.

✍️ Technical Anshu🪟 Windows 10 / 11⏱️ 3 minute read
🎥 Watch the full video — the one-command BIOS entry shown live, from checking UEFI mode to landing in setup

The BIOS command shutdown /r /fw /t 0 gets forwarded in messages and videos with no explanation, which is exactly how mistyped versions spread. Read it once, properly, and you will never need to copy it blind again: it is the standard Windows shutdown tool, a restart instruction, a firmware request and a timer, all on one line. This page decodes every switch, shows what happens when one is missing, and covers the honest limits — the command needs administrator rights and a UEFI system, and without the timer it waits 30 seconds before acting.

Reading the command piece by piece
shutdown the built-in Windows shutdown tool /r restart (reboot) after shutting down /fw on the next boot, open the firmware (BIOS) UI /f optional — force running apps to close, no warning /t 0 wait 0 seconds before doing it
👆 One line, five decisions — every part of the command translated into plain words
1

The R Switch Restart Instead of Power Off

/r tells shutdown.exe to perform a full shutdown and then restart the machine. Without it, /fw has nothing to attach to — the firmware request only makes sense as part of a boot, so /r (or its cousin /s for a plain shutdown) must always be present. Of the two, /r is the right choice here because you want the PC to come back up and open setup by itself.

2

The FW Switch the One That Opens Firmware

/fw is the entire trick. It sets a flag with the UEFI firmware: on the next boot, open the firmware user interface instead of starting the operating system. Windows stores the request, the restart happens, and the firmware honours it.

  1. It only exists on UEFI systems — there is no equivalent flag in Legacy BIOS
  2. On a Legacy install the command stops with the error Boot to firmware UI is not supported by this system's firmware.(1)
  3. It is a one-time request — the following normal restart boots Windows as usual
3

The F Switch Force Close With a Real Warning Attached

/f forces running applications to close without the “these apps are preventing shutdown” screen and without asking. That is genuinely useful when a hung program keeps blocking restarts — and genuinely dangerous when an unsaved document is open, because the document loses.

  1. The video demonstrates the command without /f: shutdown /r /fw /t 0
  2. With /f it becomes shutdown /r /fw /f /t 0 — same destination, no safety screen
  3. Rule of thumb: add /f only after you have personally closed and saved everything
4

The T Switch the Timer and the Abort That Saves You

/t 0 sets the delay before the restart to zero seconds — the command acts the moment Enter is pressed. Leave /t out entirely and the same command waits the default 30 seconds, showing a sign-out warning first. Set /t 30 and you get a half-minute grace period.

  1. During any countdown, run shutdown /a in a prompt to abort the pending restart
  2. With /t 0 there is no countdown, so there is nothing to abort — double-check before Enter
  3. Honest limit: this command cannot be used through a Remote Desktop session; it returns error 87 there

🎥 Watch the Full Video for Complete Knowledge

The command, the UEFI check and the restart into BIOS setup — shown live on a real PC, step by step.

▶️ Watch Full Video
❓ Common Questions (FAQ)

Can I type the switches in a different order

Yes. shutdown.exe does not care about the order of these switches — /fw /r /t 0 and /r /fw /t 0 do the same thing. What it does care about is spelling: every switch needs its slash and /t needs its number right after it.

What does shutdown /o do and is it the same thing

Close, but not the same. /o restarts into the Windows Advanced Startup (recovery) menu, from where you can click through to UEFI Firmware Settings. /fw skips that menu and goes straight into the firmware setup screen.

Why did the command print a long help text instead of restarting

That is shutdown.exe telling you something on the line was typed wrong — a missing slash is the classic. Compare your line character by character with shutdown /r /fw /t 0 and run it again from an administrator prompt.

This guide is based on the BIOS command video by Technical Anshu • Stuck on a step? Ask in the video comments — that is where answers come fastest 🙏