UNSOLVED

eobiont2

updated

28 days ago

E

eobiont2

4 Posts

0

169642

January 14th, 2016 07:00

Information about the BootOrder/Sequence commands

Woukd you be able to write up a article or post on how to manipulate the UEFI boot order using either the Powershell Provider or CCTK.exe if necessary?

My current problem is that I am unable to figure out how to programmatically set the computer to boot from the hard disk.  I see that I can list out the boot order and using my own eyes determine which device the hard drive is -- it is not the same on each computer or even the same on every boot.  Sometimes it is UEFI.1 sometimes it is UEFI.3  and the Hard Drive description is always a manufaturer's model number not SATA0 or something reliable.  Anyway.  I would like to develop a reliable method to tell the computer to boot from each of these...  Not in order, I mean for A) boot from USB and if there is no USB stick inserted, fail to boot.  for B) boot only from SATA HD -- even if there is a bootable USB stick inserted and if the SATA disk is not bootable, fail.

A) the USB stick that is inserted

B) Only SATA hard disks

The "sequence" value in Powershell Provider seems unpredictable when using UEFI.  In Legacy, it clearly can be set to boot from USB, CDROM, HardDisk, PXE -- but those forts of names don't exits programmatically in the UEFI boot order as far as I can tell.