Technical Anshu
Tutorials Blog
⌨️ CMD Reference

Shutdown Command Switches Explained S R F T and More

shutdown /s /f looks like a magic spell until someone explains the letters. Each switch is one instruction, and once you can read them you can build the exact shutdown or restart you want — instant, timed, forced, or for another PC on your network.

✍️ Technical Anshu🪟 Windows 10 / 11⏱️ 5 minute read
🎥 Watch the full video — the missing shutdown option fixed live with CMD, step by step

The shutdown command is one small program with many switches, and the video's fix uses just two of them. This page decodes the switches you will actually use, in plain words, including the detail most tutorials miss: if you set any timer above zero, Windows applies the force behaviour automatically, even if you never typed /f.

Command Prompt — building a command
shutdown /s /f /t 0 shutdown /r /t 60 shutdown /a
/s or /rWhat happens
/fHow firmly apps close
/t secondsWhen it happens
/aCancel it
The command is assembled from independent switches — action, force, and timing can be mixed freely (illustration)
1

The Action Switches — Pick Exactly One

Every command starts with one of these. shutdown /s /f from the video is simply shut down plus force.

2

The Force Switch /f — What It Really Changes

Normally, when Windows shuts down, each open app gets a chance to ask you to save — that is the apps are preventing shutdown screen. The /f switch removes that courtesy: apps are closed immediately, without warning the user.

Two consequences, both honest:

One behaviour surprises everyone: if you use /t with any value above 0, Windows treats the command as forced anyway, even without typing /f — because a shutdown scheduled for later cannot stop and ask questions when the moment comes.

3

The Timer Switch /t — the Delay in Seconds

/t sets how many seconds to wait before the action. The documented range is 0 to 315360000 seconds, and if you leave it out entirely the command uses a 30 second default — which is why shutdown /s /f gives you a short moment before the screen goes dark.

During any countdown above zero, Windows shows a notification that a shutdown is scheduled — and shutdown /a can still stop it. At /t 0 there is no countdown, so there is nothing to abort.

4

The Quieter Switches Worth Knowing

Run shutdown /? in CMD any time — Windows prints the complete official list on your own machine, in the version you actually have.

🎥 Watch the Complete Video Guide

See the missing shutdown option and the CMD fix done live on a real PC — every step on screen.

▶️ Watch Full Video
❓ Frequently Asked Questions

What is the difference between shutdown /s and shutdown /r?

/s powers the PC off and it stays off. /r powers it off and boots it straight back up — the restart. Everything else (force, timer, message) can be attached to either one.

Why did my PC shut down 30 seconds after I ran the command?

Because the timer was left out. Without /t, the shutdown command uses a default delay of 30 seconds. Add /t 0 when you want the action immediately, or a bigger number when you want a longer warning period.

Does /f damage Windows or my files?

It does not damage Windows itself — the operating system still shuts down in an orderly way. The risk is only to unsaved work inside applications, because they are closed without the usual save prompts. Save first and /f is harmless.

This guide is based on a Technical Anshu video • Stuck on any step? Ask in the video comments — help is there 🙏