Skip to content

Commit

Permalink
Merge pull request #333 from AlexKintis/issue-331
Browse files Browse the repository at this point in the history
Resolution for Issue #331: Successful Fix Implementation
  • Loading branch information
StefanScherer authored Apr 18, 2024
2 parents 794ff55 + 7dbde41 commit c40bde3
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 28 deletions.
20 changes: 20 additions & 0 deletions answer_files/11/Autounattend.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,26 @@
</component>

<component xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">

<!-- Run SynchronousCommand at the installation of windows -->
<RunSynchronous>

<!-- Bypass TPM Check -->
<RunSynchronousCommand wcm:action="add">
<Description>Bypass TPM Check</Description>
<Order>1</Order>
<Path>reg add HKLM\SYSTEM\Setup\LabConfig /t REG_DWORD /v BypassTPMCheck /d 1 /f</Path>
</RunSynchronousCommand>

<!-- Bypass Secure Boot Check -->
<RunSynchronousCommand wcm:action="add">
<Description>Bypass Secure Boot Check</Description>
<Order>2</Order>
<Path>reg add HKLM\SYSTEM\Setup\LabConfig /t REG_DWORD /v BypassSecureBootCheck /d 1 /f</Path>
</RunSynchronousCommand>

</RunSynchronous>

<DiskConfiguration>
<Disk wcm:action="add">
<CreatePartitions>
Expand Down
32 changes: 4 additions & 28 deletions windows_11.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
{
"builders": [
{
"boot_command": [
"<leftShiftOn><f10><leftShiftOff><wait>",
"reg add HKLM\\SYSTEM\\Setup\\LabConfig /t REG_DWORD /v BypassTPMCheck /d 1<return>",
"reg add HKLM\\SYSTEM\\Setup\\LabConfig /t REG_DWORD /v BypassSecureBootCheck /d 1<return><wait>",
"exit<return>",
"<wait><return>"
],
"boot_command": "",
"boot_wait": "2m",
"communicator": "winrm",
"configuration_version": "8.0",
Expand Down Expand Up @@ -35,13 +29,7 @@
"winrm_username": "vagrant"
},
{
"boot_command": [
"<leftShiftOn><f10><leftShiftOff><wait>",
"reg add HKLM\\SYSTEM\\Setup\\LabConfig /t REG_DWORD /v BypassTPMCheck /d 1<return>",
"reg add HKLM\\SYSTEM\\Setup\\LabConfig /t REG_DWORD /v BypassSecureBootCheck /d 1<return><wait>",
"exit<return>",
"<wait><return>"
],
"boot_command": "",
"boot_wait": "2m",
"communicator": "winrm",
"cpus": 2,
Expand Down Expand Up @@ -78,13 +66,7 @@
"winrm_username": "vagrant"
},
{
"boot_command": [
"<leftShiftOn><f10><leftShiftOff><wait>",
"reg add HKLM\\SYSTEM\\Setup\\LabConfig /t REG_DWORD /v BypassTPMCheck /d 1<return>",
"reg add HKLM\\SYSTEM\\Setup\\LabConfig /t REG_DWORD /v BypassSecureBootCheck /d 1<return><wait>",
"exit<return>",
"<wait><return>"
],
"boot_command": "",
"boot_wait": "2m",
"communicator": "winrm",
"cpus": 2,
Expand Down Expand Up @@ -112,13 +94,7 @@
"winrm_username": "vagrant"
},
{
"boot_command": [
"<leftShiftOn><f10><leftShiftOff><wait>",
"reg add HKLM\\SYSTEM\\Setup\\LabConfig /t REG_DWORD /v BypassTPMCheck /d 1<return>",
"reg add HKLM\\SYSTEM\\Setup\\LabConfig /t REG_DWORD /v BypassSecureBootCheck /d 1<return><wait>",
"exit<return>",
"<wait><return>"
],
"boot_command": "",
"boot_wait": "2m",
"communicator": "winrm",
"cpus": 2,
Expand Down

0 comments on commit c40bde3

Please sign in to comment.