mirror of
https://github.com/bin456789/reinstall.git
synced 2025-01-19 04:49:13 +08:00
windows: 只在单核时才改动 win11 的 InstallationType
This commit is contained in:
parent
d99fe2e480
commit
a4d65cb737
9
trans.sh
9
trans.sh
@ -2873,12 +2873,15 @@ install_windows() {
|
|||||||
echo "Product Type: $product_type"
|
echo "Product Type: $product_type"
|
||||||
echo "Product Version: $product_ver"
|
echo "Product Version: $product_ver"
|
||||||
|
|
||||||
# 解除 win11 硬件限制
|
# win11 要求 1GHz 2核(1核超线程也行)
|
||||||
# 24h2 26100 IoT 没有限制 TPM,但强制要求 2c2g
|
# 用注册表无法绕过
|
||||||
|
# https://github.com/pbatard/rufus/issues/1990
|
||||||
# https://learn.microsoft.com/windows/iot/iot-enterprise/Hardware/System_Requirements
|
# https://learn.microsoft.com/windows/iot/iot-enterprise/Hardware/System_Requirements
|
||||||
if [[ "$image_name" = "Windows 11"* ]]; then
|
if [ "$product_ver" = "11" ]; then
|
||||||
|
if [ "$(grep -c '^processor' /proc/cpuinfo)" -le 1 ]; then
|
||||||
wiminfo "$install_wim" "$image_name" --image-property WINDOWS/INSTALLATIONTYPE=Server
|
wiminfo "$install_wim" "$image_name" --image-property WINDOWS/INSTALLATIONTYPE=Server
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# 变量名 使用场景
|
# 变量名 使用场景
|
||||||
# arch_uname arch命令 / uname -m x86_64 aarch64
|
# arch_uname arch命令 / uname -m x86_64 aarch64
|
||||||
|
@ -108,6 +108,11 @@ move /y %tempFile% %file%
|
|||||||
|
|
||||||
rename X:\setup.exe.disabled setup.exe
|
rename X:\setup.exe.disabled setup.exe
|
||||||
|
|
||||||
|
rem https://github.com/pbatard/rufus/issues/1990
|
||||||
|
for %%a in (RAM TPM SecureBoot) do (
|
||||||
|
reg add HKLM\SYSTEM\Setup\LabConfig /t REG_DWORD /v Bypass%%aCheck /d 1 /f
|
||||||
|
)
|
||||||
|
|
||||||
rem 设置
|
rem 设置
|
||||||
set EnableEMS=0
|
set EnableEMS=0
|
||||||
set ForceOldSetup=1
|
set ForceOldSetup=1
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
<!-- <RunSynchronous>
|
<!-- <RunSynchronous>
|
||||||
<RunSynchronousCommand wcm:action="add">
|
<RunSynchronousCommand wcm:action="add">
|
||||||
<Order>1</Order>
|
<Order>1</Order>
|
||||||
<Path>cmd /c for %a in (CPU RAM SecureBoot Storage Disk TPM) do reg add HKLM\SYSTEM\Setup\LabConfig /t REG_DWORD /v Bypass%aCheck /d 1 /f</Path>
|
<Path>cmd /c for %a in (RAM TPM SecureBoot) do reg add HKLM\SYSTEM\Setup\LabConfig /t REG_DWORD /v Bypass%aCheck /d 1 /f</Path>
|
||||||
</RunSynchronousCommand>
|
</RunSynchronousCommand>
|
||||||
</RunSynchronous> -->
|
</RunSynchronous> -->
|
||||||
</component>
|
</component>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user