Share via

Command behind [Settings] System > Recovery -> "Advanced startup" "Restart now" [Windows 11]

Anonymous
2024-02-08T20:42:01+00:00

Does anyone know how I can identify the actual command behind the "Restart now" button accessed via the path described in my question? This would prove very useful for a batch program that I may enhance. Thanks.

Windows for home | Windows 11 | Settings

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

  1. Rodrigo Queiroz 77,500 Reputation points Independent Advisor
    2024-02-08T21:20:26+00:00

    Hi,

    I'm Rodrigo and I'll help you.

    The command to go to Advanced Startup is

    shutdown /r /o

    You can add the parameters /f to force the restart and /t 0 to remove the wait time (30 seconds by default), leaving

    shutdown /r /o /f /t 0

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2024-02-08T21:33:48+00:00

    Hi Rodrigo,

    You are a star! Thanks very much. If only I'd entered shutdown /? at the command prompt, I might have found it myself ....

    Cheers, Neil.

    0 comments No comments