If your keyboard is not connected to your PC after restarting, you can still access the boot menu using a simple script. This readme provides a quick tutorial on using the following script:
shutdown /r /fw /t 1
- shutdown: Initiates a system shutdown or restart.
- /r: Specifies that the computer should restart after shutdown.
- /fw: Initiates the restart in the firmware user interface (UEFI/BIOS) to access the boot menu.
- /t 1: Sets the time delay before restarting to 1 second.
-
Open a text editor (e.g., Notepad) and paste the script:
shutdown /r /fw /t 1
-
Save the file with a ".bat" extension, e.g.,
boot_menu.bat
. -
Double-click the saved file to execute the script.
-
Your computer will restart, and it should automatically open the boot menu during the restart.
Note: Ensure that your computer supports UEFI/BIOS access via the /fw
option.
- If the script doesn't work, check your system documentation to confirm UEFI/BIOS access via command-line options.
- Make sure that your system supports automatic boot into the firmware interface.
- If issues persist, consider connecting a keyboard temporarily to troubleshoot the underlying problem.
Now you can conveniently access the boot menu without the need for a connected keyboard after restarting your PC.