windows: 使用新方法绕过 win11 硬件要求
This commit is contained in:
parent
b34af7a164
commit
2fcb6d2a9c
9
trans.sh
9
trans.sh
@ -1240,6 +1240,15 @@ install_windows() {
|
|||||||
echo $image_name | grep -iEw '^Windows (7|Server 2008 R2)'
|
echo $image_name | grep -iEw '^Windows (7|Server 2008 R2)'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
is_win11() {
|
||||||
|
echo $image_name | grep -iEw '^Windows 11'
|
||||||
|
}
|
||||||
|
|
||||||
|
# 跳过 win11 硬件限制
|
||||||
|
if is_win11; then
|
||||||
|
wiminfo "$install_wim" "$image_name" --image-property WINDOWS/INSTALLATIONTYPE=Server
|
||||||
|
fi
|
||||||
|
|
||||||
# 变量名 使用场景
|
# 变量名 使用场景
|
||||||
# arch_uname uname -m x86_64 aarch64
|
# arch_uname uname -m x86_64 aarch64
|
||||||
# arch_wim wiminfo x86 x86_64 ARM64
|
# arch_wim wiminfo x86 x86_64 ARM64
|
||||||
|
23
windows.xml
23
windows.xml
@ -36,28 +36,13 @@
|
|||||||
</InstallTo>
|
</InstallTo>
|
||||||
</OSImage>
|
</OSImage>
|
||||||
</ImageInstall>
|
</ImageInstall>
|
||||||
<RunSynchronous>
|
<!-- 有的机器不起作用 -->
|
||||||
|
<!-- <RunSynchronous>
|
||||||
<RunSynchronousCommand wcm:action="add">
|
<RunSynchronousCommand wcm:action="add">
|
||||||
<Order>1</Order>
|
<Order>1</Order>
|
||||||
<Path>reg add HKLM\System\Setup\LabConfig /v BypassTPMCheck /t reg_dword /d 0x00000001 /f</Path>
|
<Path>cmd /c for %a in (CPU RAM SecureBoot Storage TPM) do reg add HKLM\SYSTEM\Setup\LabConfig /t REG_DWORD /v Bypass%aCheck /d 1 /f</Path>
|
||||||
</RunSynchronousCommand>
|
</RunSynchronousCommand>
|
||||||
<RunSynchronousCommand wcm:action="add">
|
</RunSynchronous> -->
|
||||||
<Order>2</Order>
|
|
||||||
<Path>reg add HKLM\System\Setup\LabConfig /v BypassSecureBootCheck /t reg_dword /d 0x00000001 /f</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>3</Order>
|
|
||||||
<Path>reg add HKLM\System\Setup\LabConfig /v BypassRAMCheck /t reg_dword /d 0x00000001 /f</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>4</Order>
|
|
||||||
<Path>reg add HKLM\System\Setup\LabConfig /v BypassStorageCheck /t reg_dword /d 0x00000001 /f</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>5</Order>
|
|
||||||
<Path>reg add HKLM\System\Setup\LabConfig /v BypassCPUCheck /t reg_dword /d 0x00000001 /f</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
</RunSynchronous>
|
|
||||||
</component>
|
</component>
|
||||||
<component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="%arch%" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
<component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="%arch%" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||||
<InputLocale>%locale%</InputLocale>
|
<InputLocale>%locale%</InputLocale>
|
||||||
|
Loading…
Reference in New Issue
Block a user