We consider this the new way to deploy an image. Capture a BIOS configured single partition image. Then for deployment, is using 6.1.251 or higher, apply the task group named "[DISK] BIOS/UEFI Tasks". If using version 6.0.425 or lower create the following 2 bat script tasks.
Preinstall bat task
@echo off
wpeutil UpdateBootInfo
for /f "tokens=2* delims= " %%A in ('reg query HKLM\System\CurrentControlSet\Control /v PEFirmwareType') DO SET FIRMWARE=%%B
echo Firmware Type: %FIRMWARE%
echo Explanation of Firmware Type: (0x1 is BIOS, 0x2 is UEFI)
if %FIRMWARE%==0x1 goto BIOS
if %FIRMWARE%==0x2 goto UEFI
goto END
:UEFI
(
ECHO select disk 0
ECHO clean
ECHO convert gpt noerr
ECHO create partition efi size=200
ECHO assign letter=s
ECHO format quick fs=FAT32
ECHO Create partition msr size=128
ECHO create partition primary
ECHO assign letter=c
ECHO format quick fs=NTFS
ECHO exit
)>X:\Windows\System32\UEFI.txt
diskpart /s X:\Windows\System32\UEFI.txt
goto END
:BIOS
(
ECHO select disk 0
ECHO clean
ECHO create partition primary
ECHO select partition 1
ECHO assign letter=c
ECHO active
ECHO format quick fs=NTFS
ECHO exit
)>X:\Windows\System32\BIOS.txt
diskpart /s X:\Windows\System32\BIOS.txt
goto END
:END
Make sure there is a tab and a space between 'delims=' and " %%A"
Then create a midlevel bat task
@echo off
for %%I in (Z W V U S R Q P O N M L K J I H G F E D C) do (
if exist %%I:\BOOT if not exist %%I:\SOURCES\BOOT.WIM set BOOTSYS_DRIVE=%%I:
if exist %%I:\WINDOWS if not exist %%I:\SOURCES\BOOT.WIM set WINDOWS_DRIVE=%%I:
)
wpeutil UpdateBootInfo
for /f "tokens=2* delims= " %%A in ('reg query HKLM\System\CurrentControlSet\Control /v PEFirmwareType') DO SET FIRMWARE=%%B
@echo on
echo Boot Drive: %BOOTSYS_DRIVE%
echo Windows Drive: %WINDOWS_DRIVE%
echo Firmware Type: %FIRMWARE% (0x1 is BIOS, 0x2 is UEFI)
echo Explanation of Firmware Type: (0x1 is BIOS, 0x2 is UEFI)
if %FIRMWARE%==0x1 goto BIOS
if %FIRMWARE%==0x2 goto UEFI
goto END
:UEFI
bcdboot %WINDOWS_DRIVE%\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=%WINDOWS_DRIVE%
bcdedit /store S:\efi\microsoft\boot\bcd /set {default} osdevice partition=%WINDOWS_DRIVE%
Bcdedit /store S:\efi\microsoft\boot\bcd /set {FWbootmgr} displayorder {Bootmgr} /addfirst
bootsect /nt60 s:
goto END
:BIOS
if not defined BOOTSYS_DRIVE (
bcdboot %WINDOWS_DRIVE%\windows /s %WINDOWS_DRIVE%
)
goto END
:END
Make sure there is a tab and a space between 'delims=' and " %%A"
Attach these 2 tasks to your BIOS captured single partition image and go at it!!!
These 2 tasks will automatically determine if you are running BIOS or UEFI and applly the appropriate partitioning.
***Warning, issues can arise if using these on images that are not single partition or were captured from a UEFI system.
These tasks will be included as a task group when upgrading to SDA version 6.1, later this year.
See this image:
https://imgur.com/a/DxbU2Ci
If you are going to do UEFI, you will need to boot from a UEFI source, and make sure the Boot Mode is set to UEFI as well.
The SSD is unable to locate a UEFI boot partition, because they are not being created.(because the imaging is being made in Legacy mode) - Channeler 6 years ago
Because those systems are pure UEFI, you will need to boot in UEFI, create UEFI partitions and deploy your Image.
Update your BIOS to the latest version and then check the device manual, they (those devices) should offer your a UEFI onboard NIC boot option.
Anyway, the KACE Appliance has zero power over the BIOS and it's boot options, this is not a KACE issue.
But you are not alone out there, please check this URL, about a Dell Latitude 5590:
https://social.technet.microsoft.com/Forums/en-US/80dd7a2d-44ac-4cc8-b8a4-9bdee6f10c2b/uefi-no-bootable-devices-found?forum=mdt
This guy is using a Microsoft Imaging solution, but it has the same issue, read the post from the user named 'SteveInOregon2017', from April 13th
Another example , See:
https://www.reddit.com/r/sysadmin/comments/8reu9l/psa_dells_new_models_will_lock_you_out_of_using/ - Channeler 6 years ago
Very similar.. - rjonesdj 5 years ago
CREATE:
Select disk 0
Clean
Convert gpt
Create partition efi size=200
Assign letter=s
Format quick fs=FAT32
Create partition msr size=128
Create partition primary
Assign letter=c
Format quick fs=NTFS
Exit
APPLY:
bcdedit /set {bootmgr} device partition=s:
bcdedit /set {memdiag} device partition=s:
bcdedit /set {default} device partition=c:
bcdedit /set {default} osdevice partition=c:
Bcdedit /set {FWbootmgr} displayorder {Bootmgr} /addfirst - tkeyes 5 years ago
wpeutil UpdateBootInfo
for /f "tokens=2* delims= " %%A in ('reg query HKLM\System\CurrentControlSet\Control /v PEFirmwareType') DO SET FIRMWARE=%%B
echo Firmware Type: %FIRMWARE%
echo Explanation of Firmware Type: (0x1 is BIOS, 0x2 is UEFI)
if %FIRMWARE%==0x1 goto BIOS
if %FIRMWARE%==0x2 goto UEFI
goto END
The rest of the script works fine by manual entry. - rypalcovic 5 years ago
Are these two tasks still good for Windows 10 deployments on SDA Version 8.2? - josed558 2 years ago
"ECHO Create partition msr size=128"
So I create a duplicate of that task and modify for Win 11. - cserrins 2 years ago