brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: shutdown /r /o restarts Windows straight into the advanced boot options

Windows
~/tips/tip-windows-shutdown-advanced-boot-options

shutdown /r /o /t 0

Restarts Windows into the recovery menu or the firmware settings without key mashing.

Getting into the Windows recovery menu usually means digging through Settings. I find the command quicker, and it works from any terminal, including a remote session.

The /o switch of the old shutdown command restarts the PC into the Advanced boot options menu. It must be combined with /r:

shutdown /r /o /t 0

/t 0 sets the delay to zero seconds; without it you get the default 30.

A related switch I like even more is /fw. Combine it with a restart and the next boot goes straight to the firmware settings, so no more mashing F2 or Del at exactly the right moment:

shutdown /r /fw /t 0

And if you started a restart with a delay and change your mind, shutdown /a cancels it during the time-out. Combined with /fw it also clears a pending boot to firmware.

The caveat: Microsoft notes that any time-out above 0 implies /f, which closes running apps without warning. So save your work first, especially if you use a delay like /t 60. With /t 0 that /f isn’t implied, and I’d only add it yourself when you’re sure nothing needs saving. My advice is to close your apps first and then run it.

Further reading: shutdown (Microsoft Learn)

More Windows tips Win+Ctrl+C Win+Shift+Left arrow Win+Ctrl+Left arrow Alt+PrtScn Left Alt + Left Shift + Print Screen All Windows tips (33) All topics

Link