制作纯净的,原生的Win10 PE 环境(无桌面无任何添加剂)
2020-09-14 22:59:22
3.1.3 更改语言(可选), 验证已安装的程序包:
dism /Get-Packages /Image:"D:mount" // 可以用该命令查看出英文语言包名称,以便后面删除(如:Microsoft-Windows-WinPE-LanguagePack-Package~31bf3856ad364e35~amd64~en-US~10.0.14393.0), , ①安装中文语言包:
dism /image:D:mount /Add-Package /PackagePath:"C:Program Files (x86)Windows Kits10Assessment and Deployment KitWindows Preinstallation Environmentamd64WinPE_OCsWinPE-FontSupport-ZH-CN.cab"
dism /image:D:mount /Add-Package /PackagePath:"C:Program Files (x86)Windows Kits10Assessment and Deployment KitWindows Preinstallation Environmentamd64WinPE_OCszh-cnlp.cab", ②更改为中文:
dism /image:"D:mount" /Set-AllIntl:zh-CN // 更改为中文语言
dism /image:"D:mount" /set-inputlocale:0804:00000804 // 更改输入法区域
dism /image:"D:mount" /set-timezone:"China Standard Time" // 设置时区
dism /image:"D:mount" /set-SKUIntlDefaults:zh-CN , ③删除英文语言包:
dism /image:D:mount /Remove-Package /PackageName:Microsoft-Windows-WinPE-LanguagePack-Package~31bf3856ad364e35~amd64~en-US~10.0.14393.0, ,3.1.4 添加程序包(可选),AIK的说明文件里面有详细介绍,推荐添加以下6个包:, WinPE-HTA:HTML // 应用程序支持。
WinPE-MDAC:Microsoft(R) // 数据访问组件支持。
WinPE-Scripting:Windows // 脚本主机 (WSH) 支持。
WinPE-WMI:Windows Management Instrumentation (WMI) 支持。 // WinPE-PPPoE:启用以太网上的点对点协议 (PPPoE) 支持。(如ADSL)
WinPE-DOT3SVC:IEEE 802.X // 身份验证协议支持。(如WiFi), ,WinPE-HTA:HTML 应用程序支持。
dism /image:D:mount /Add-Package /PackagePath:"C:Program Files (x86)Windows Kits10Assessment and Deployment KitWindows Preinstallation Environmentamd64WinPE_OCsWinPE-HTA.cab"
dism /image:D:mount /Add-Package /PackagePath:"C:Program Files (x86)Windows Kits10Assessment and Deployment KitWindows Preinstallation Environmentamd64WinPE_OCszh-cnWinPE-HTA_zh-cn.cab" // 如果更改了语言包,这里添加相应的语言包,WinPE-MDAC:Microsoft(R) 数据访问组件支持。
dism /image:D:mount /Add-Package /PackagePath:"C:Program Files (x86)Windows Kits10Assessment and Deployment KitWindows Preinstallation Environmentamd64WinPE_OCsWinPE-MDAC.cab"
dism /image:D:mount /Add-Package /PackagePath:"C:Program Files (x86)Windows Kits10Assessment and Deployment KitWindows Preinstallation Environmentamd64WinPE_OCszh-cnWinPE-MDAC_zh-cn.cab" // 如果更改了语言包,这里添加相应的语言包,WinPE-Scripting:Windows 脚本主机 (WSH) 支持。
dism /image:D:mount /Add-Package /PackagePath:"C:Program Files (x86)Windows Kits10Assessment and Deployment KitWindows Preinstallation Environmentamd64WinPE_OCsWinPE-Scripting.cab"
dism /image:D:mount /Add-Package /PackagePath:"C:Program Files (x86)Windows Kits10Assessment and Deployment KitWindows Preinstallation Environmentamd64WinPE_OCszh-cnWinPE-Scripting_zh-cn.cab" // 如果更改了语言包,这里添加相应的语言包,WinPE-WMI:Windows Management Instrumentation (WMI) 支持。
dism /image:D:mount /Add-Package /PackagePath:"C:Program Files (x86)Windows Kits10Assessment and Deployment KitWindows Preinstallation Environmentamd64WinPE_OCsWinPE-WMI.cab"
dism /image:D:mount /Add-Package /PackagePath:"C:Program Files (x86)Windows Kits10Assessment and Deployment KitWindows Preinstallation Environmentamd64WinPE_OCszh-cnWinPE-WMI_zh-cn.cab" // 如果更改了语言包,这里添加相应的语言包, ,3.1.5 设暂存空间(可选), dism /image:"D:mount" /Set-ScratchSpace:512 // 暂存空间: 512MB, ,3.1.6 重新打包
imagex /capture /compress maximum /boot D:mount D:Win10PEmediasourcesboot.wim "winpe" "winpe",
,步骤四:把提取的Win10 PE文件夹制作成ISO镜像, MakeWinPEMedia /ISO D:Win10PE D:Win10PE.iso // 把 D:Win10PE 文件夹的内容制作成名为Win10PE.iso的镜像文件保存到D:下。, ,最后: 你可以把制作好的iso写入U盘引导,也可以用现有的大白菜/老毛桃启动U盘来引导iso进入Win10 PE。,