Skip to content

Instantly share code, notes, and snippets.

@christian-korneck
Last active November 8, 2024 00:04
Show Gist options
  • Save christian-korneck/3707ac335b95a0c20ba761bc9fba36f1 to your computer and use it in GitHub Desktop.
Save christian-korneck/3707ac335b95a0c20ba761bc9fba36f1 to your computer and use it in GitHub Desktop.
Win11 install - bypass compatibility checks (no TPM, no UEFI, etc)

in Windows setup: SHIFT + F10 opens a cmd shell. Then regedit.

[HKEY_LOCAL_MACHINE\SYSTEM\Setup\LabConfig]
"BypassTPMCheck"=dword:00000001
"BypassSecureBootCheck"=dword:00000001
"BypassRAMCheck"=dword:00000001
"BypassStorageCheck"=dword:00000001
"BypassCPUCheck"=dword:00000001
"BypassDiskCheck"=dword:00000001

if inplace upgrade to 24H2 fails with "no tpm2" error message:

reg.exe delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\CompatMarkers" /f 2>NUL
reg.exe delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Shared" /f 2>NUL
reg.exe delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\TargetVersionUpgradeExperienceIndicators" /f 2>NUL
reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\HwReqChk" /f /v HwReqChkVars /t REG_MULTI_SZ /s , /d "SQ_SecureBootCapable=TRUE,SQ_SecureBootEnabled=TRUE,SQ_TpmVersion=2,SQ_RamMB=8192,"
reg.exe add "HKLM\SYSTEM\Setup\MoSetup" /f /v AllowUpgradesWithUnsupportedTPMOrCPU /t REG_DWORD /d 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment