1

I wish to restart Windows 7 x64 by schedule, but the shutdown process needs not to be forced, but applications allowed to end normally. I have used scheduled task and system utility shutdown.exe with arguments /r /t 60 /d p:8:0 and there are no /f argument, isn't it? But the Shutdown utility have forced the restart. Is there inappropriate arguments used? Why the utility forces restart? And how to schedule task that restarts Windows normally?

green
  • 121
  • 6
  • That's because of /t timeout not equals 0, see `shutdown /?` – kay27 Jan 10 '17 at 18:55
  • Oh, you're completely right! How could I not notice this? Post it as answer and I'll accept it. – green Jan 10 '17 at 19:03
  • Feel free to add it yourself :) My answer is not complete - I didn't offer you a way to schedule restart. So I hope someone will add something useful, eg. `at` command syntax... Good luck! – kay27 Jan 10 '17 at 22:12
  • @kay27 Thanks. I have noted in my question, that _I have used scheduled task_, so I can use scheduling already. – green Jan 13 '17 at 19:30

1 Answers1

1

The reason is described in the Shutdown utility help: everyone in this case should read it (the help) attentively enough, about all arguments, but not only about those, which are need to be used.


The help states, that if /t subargument >0, then /f applies automatically (and can't be disabled, if I understood properly).

green
  • 121
  • 6