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
标签:文件,bat,00000001,Setup,SYSTEM,reg,HKLM,DWORD,TPM From: https://www.cnblogs.com/suv789/p/18549265