windows: 关闭错误报告、客户体验改善计划

This commit is contained in:
bin456789
2024-05-22 21:08:10 +08:00
parent 7b6a1e2db9
commit 57ad968e56
2 changed files with 13 additions and 0 deletions

View File

@ -2896,6 +2896,11 @@ install_windows() {
sed -i "s|%installto_partitionid%|1|" /tmp/autounattend.xml
fi
# vista/2008 有这行安装会报错
if [ "$nt_ver" = 6.0 ]; then
sed -i "/EnableFirewall/d" /tmp/autounattend.xml
fi
# 2012 r2删除 key 字段,报错 Windows cannot read the <ProductKey> setting from the unattend answer file即使创建 ei.cfg
# ltsc 2021有 ei.cfg填空白 key 正常
# ltsc 2021 n有 ei.cfg填空白 key 报错 Windows Cannot find Microsoft software license terms