I'm looking to write small batch files which can reboot the computer and set the UEFI boot option to boot from a specific drive. I figured that on some level the UEFI options are exposed to the OS because Windows itself has the ability to change some boot options from it's settings menu. Additionally, software exists to manage this but I'm looking for a programmatic way to do it because I'm trying to incorporate it into a script.


There are resources listing UEFI calls and the firmware variables, but if you do not know lower-level languages, Windows does not expose these in the CMD, AFAIK. See Vincent Zimmer's comments.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.