you are viewing a single comment's thread
view the rest of the comments
[–] 20 points 1 year ago (1 child)

Not really. If -f (force) is removed windows will shutdown similar to pressing the shutdown button and will wait for your input regarding open programs. -f is needed to just just β€œdo it” with no hesitation or response from the user.

  • source
  • parent
  • hideshow 2 child comments
  • [–] -2 points 1 year ago* (2 children)

    Straight from the doc

    /t Sets the time-out period before shutdown to xxx seconds. The valid range is 0-315360000 (10 years), with a default of 30. If the timeout period is greater than 0, the /f parameter is implied.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 29 points 1 year ago (1 child)

    Sooo when you use the prompt

    Shutdown.exe -r -t 00

    You would need the -f since we defined the timeout period as 0. Because:

    If the timeout period is greater than 0, the /f parameter is implied.

  • source
  • parent
  • hideshow 2 child comments