From 7dbde41b7d01a8905c2c6c32092bafe8fa435122 Mon Sep 17 00:00:00 2001 From: Kintis Alexandros Date: Wed, 3 Apr 2024 15:06:25 +0300 Subject: [PATCH] Add the regedit boot commands directly into the windows 11 Autounattend.xml file. --- answer_files/11/Autounattend.xml | 20 ++++++++++++++++++++ windows_11.json | 32 ++++---------------------------- 2 files changed, 24 insertions(+), 28 deletions(-) diff --git a/answer_files/11/Autounattend.xml b/answer_files/11/Autounattend.xml index 4e790d97..830f1939 100644 --- a/answer_files/11/Autounattend.xml +++ b/answer_files/11/Autounattend.xml @@ -57,6 +57,26 @@ + + + + + + + Bypass TPM Check + 1 + reg add HKLM\SYSTEM\Setup\LabConfig /t REG_DWORD /v BypassTPMCheck /d 1 /f + + + + + Bypass Secure Boot Check + 2 + reg add HKLM\SYSTEM\Setup\LabConfig /t REG_DWORD /v BypassSecureBootCheck /d 1 /f + + + + diff --git a/windows_11.json b/windows_11.json index 0b6b9ed0..bf5be46a 100644 --- a/windows_11.json +++ b/windows_11.json @@ -1,13 +1,7 @@ { "builders": [ { - "boot_command": [ - "", - "reg add HKLM\\SYSTEM\\Setup\\LabConfig /t REG_DWORD /v BypassTPMCheck /d 1", - "reg add HKLM\\SYSTEM\\Setup\\LabConfig /t REG_DWORD /v BypassSecureBootCheck /d 1", - "exit", - "" - ], + "boot_command": "", "boot_wait": "2m", "communicator": "winrm", "configuration_version": "8.0", @@ -35,13 +29,7 @@ "winrm_username": "vagrant" }, { - "boot_command": [ - "", - "reg add HKLM\\SYSTEM\\Setup\\LabConfig /t REG_DWORD /v BypassTPMCheck /d 1", - "reg add HKLM\\SYSTEM\\Setup\\LabConfig /t REG_DWORD /v BypassSecureBootCheck /d 1", - "exit", - "" - ], + "boot_command": "", "boot_wait": "2m", "communicator": "winrm", "cpus": 2, @@ -78,13 +66,7 @@ "winrm_username": "vagrant" }, { - "boot_command": [ - "", - "reg add HKLM\\SYSTEM\\Setup\\LabConfig /t REG_DWORD /v BypassTPMCheck /d 1", - "reg add HKLM\\SYSTEM\\Setup\\LabConfig /t REG_DWORD /v BypassSecureBootCheck /d 1", - "exit", - "" - ], + "boot_command": "", "boot_wait": "2m", "communicator": "winrm", "cpus": 2, @@ -112,13 +94,7 @@ "winrm_username": "vagrant" }, { - "boot_command": [ - "", - "reg add HKLM\\SYSTEM\\Setup\\LabConfig /t REG_DWORD /v BypassTPMCheck /d 1", - "reg add HKLM\\SYSTEM\\Setup\\LabConfig /t REG_DWORD /v BypassSecureBootCheck /d 1", - "exit", - "" - ], + "boot_command": "", "boot_wait": "2m", "communicator": "winrm", "cpus": 2,