Systems Deployment Question

Changing Boot Order From Post Install Script

11/26/2019 237 views

Much like the Title states I would like to change the boot order during Post Install execution.

I do not want to install CCTK on my images, however, CCTK is installed on the K2000 Boot Environment.

I am unable to set the boot order during mid tasks because the HDD or Window Manager is not available until the system reboots and Post Install begins.

I don't want to go into details because it's a long story but I am going from Legacy to Uefi on many remote machines and unfortunately unless I installed CCTK on each machine I cannot change the starting boot sequence from legacy to UEFI, I do this during mid level tasks however.

Currently the end result is a Win10 Uefi boot machine that wants to boot into IPv4 NIC every time it boots. I can of course change the boot sequence after imaging has completed with a CCTK executable but would prefer this was done automatically during deployment.

0 Comments   [ + ] Show comments


Community Chosen Answer


When you reach the Post Install Sequence, the KBE is no more, and everything is executed within the OS.

You could create a post install task to install CCTK  silently.

Run whatever BIOS commands with a powershell or CMD task.

Run another task\command to Remove CCTK silently.

(there, it's not part of the Gold Image, and it will not stay installed for long , use three tasks)

Answered 11/26/2019 by: Channeler
Red Belt

  • Yes this is an option, however, running a CCTK executable which changes the order is a better method I believe
    • Set a post install task to with xcopy to copy the EXE to a certain location.

      Set another task to use it. (CD to that location and run your CCTK commands).

      Set a last task to delete the EXE.

      If it's an executable, you should not need to install it.

All Answers


In my case, I made the legacy to uefi change in a pre-install task with CCTK. Just a zip file with a .bat to change the boot mode :

  "%~dp0cctk.exe" BootOrder --ActiveBootList=uefi > nul

Nothing is install in the golden image or the machine.

  • Boot to kbe in legacy mode
  • change boot mode in pre-install task
  • install the os with uefi compatible file sytem
  • reboot in uefi mode and finish the install

Answered 12/02/2019 by: gwir
Fourth Degree Green Belt