Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\Setup\LabConfig]
"BypassTPMCheck"=dword:00000001
"BypassSecureBootCheck"=dword:00000001
"BypassRAMCheck"=dword:00000001
"BypassStorageCheck"=dword:00000001
"BypassCPUCheck"=dword:00000001
"BypassDiskCheck"=dword:00000001
"BypassNetworkCheck"=dword:00000001
[HKEY_LOCAL_MACHINE\SYSTEM\Setup\MoSetup]
"AllowUpgradesWithUnsupportedTPMOrCPU"=dword:00000001
@echo off
:: 設定 BypassTPMCheck 為 1,繞過 TPM 檢查
reg add "HKLM\SYSTEM\Setup\LabConfig" /v "BypassTPMCheck" /t REG_DWORD /d "1" /f
:: 設定 BypassSecureBootCheck 為 1,繞過 Secure Boot 檢查
reg add "HKLM\SYSTEM\Setup\LabConfig" /v "BypassSecureBootCheck" /t REG_DWORD /d "1" /f
:: 設定 BypassRAMCheck 為 1,繞過 RAM 檢查
reg add "HKLM\SYSTEM\Setup\LabConfig" /v "BypassRAMCheck" /t REG_DWORD /d "1" /f
:: 設定 BypassStorageCheck 為 1,繞過儲存檢查
reg add "HKLM\SYSTEM\Setup\LabConfig" /v "BypassStorageCheck" /t REG_DWORD /d "1" /f
:: 設定 BypassCPUCheck 為 1,繞過 CPU 檢查
reg add "HKLM\SYSTEM\Setup\LabConfig" /v "BypassCPUCheck" /t REG_DWORD /d "1" /f
:: 設定 BypassDiskCheck 為 1,繞過硬碟檢查
reg add "HKLM\SYSTEM\Setup\LabConfig" /v "BypassDiskCheck" /t REG_DWORD /d "1" /f
:: 設定 BypassNetworkCheck 為 1,繞過聯網檢查
reg add "HKLM\SYSTEM\Setup\LabConfig" /v "BypassNetworkCheck" /t REG_DWORD /d "1" /f
:: 設定 AllowUpgradesWithUnsupportedTPMOrCPU 為 1,允許進行不支援 TPM 或 CPU 的升級
reg add "HKLM\SYSTEM\Setup\MoSetup" /v "AllowUpgradesWithUnsupportedTPMOrCPU" /t REG_DWORD /d "1" /f
:: 提示登錄檔更新成功
echo Registry keys have been successfully updated.
:: 暫停,等待使用者按任意鍵後繼續
pause