If a device is PXE booted into Legacy and deploying a UEFI image will cause an issue with the new BIOS/UEFI tasks and partition where the result is the drives are incorrectly formatted.
Create a System Image in a Single Partition BIOS/Legacy configuration, utilizing these tasks will apply the correct partitioning to a device based on how it was PXE Booted. This allows ONE system image to be created and used by the customer for both Legacy BIOS and UEFI scenarios, negating the need to maintain separate system images for each partitioning scheme. No other Pre or Mid level tasks are needed for Partitioning/Formatting/MBR purposes and should not be used in conjunction with these tasks.
The tasks are:
[DISK] Create BIOS/UEFI Partitions
[DISK] Apply BIOS/UEFI Partitions
An accompanying Task Group was also created to assist in applying these tasks on deployment to simplify the process.
[DISK] BIOS/UEFI Tasks
Both of these tasks work by determining the Boot Mode of a device while it is in a KBE. Boot Mode is determined by how that device is PXE booted (utilizing a registry query within the KBE); either Legacy or UEFI. The Boot Mode of a device can be found by looking in the KBE footer and finding the Boot Mode attribute (Picture Below).
Once the task determines the Boot Mode it will create a Diskpart task for the Boot Mode (Legacy or UEFI) on the fly, save them to a .txt file and then run that diskpart task. Here is a breakdown for how each tasks will behave:
Task Level: Mid-Level Task
Task Type: BAT Script
---------------------------------
bcdboot c:\windows /s s: /f UEFI
bcdedit /store S:\efi\microsoft\boot\bcd /set {bootmgr} device partition=s:
bcdedit /store S:\efi\microsoft\boot\bcd /set {memdiag} device partition=s:
bcdedit /store S:\efi\microsoft\boot\bcd /set {default} device partition=c:
bcdedit /store S:\efi\microsoft\boot\bcd /set {default} osdevice partition=c:
Bcdedit /store S:\efi\microsoft\boot\bcd /set {FWbootmgr} displayorder {Bootmgr} /addfirst
bootsect /nt60 s:
Disable Legacy ROMS, make sure Secure Boot is disabled, Enable UEFI Network Stack (Usually in Advanced Boot Options) and boot into UEFI PXE mode (this requires DHCP to be properly set for UEFI). DHCP PXE Boot Policy Settings
Solution 2
<ol "droid="" "fira="" "helvetica="" 14px;"="" font-size:="" neue",="" oxygen,="" roboto,="" sans",="" sans-serif;="" segoe="" ubuntu,="" ui",="">© ALL RIGHTS RESERVED. Feedback Terms of Use Privacy Cookie Preference Center