# Update paths accordingly if not using Win10 or an x64 OS version:
C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools
C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\amd64\BCDBoot
C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\amd64\DISM
C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\amd64\Oscdimg
C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment
好的→好的→好的
打开管理终端:+ R→ powershell→ Ctrl+ Shift+ OK
构建 WinPE 文件系统
必需的:
挂载 WinPE 启动映像:
# Load ADK variables:
Cmd /K "C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\DandISetEnv.bat"
# Copy WinPE files to working directory C:\WinPE:
CopyPE amd64 "C:\WinPE"
# Mount WinPE WIM:
Dism /Mount-Image /ImageFile:"C:\WinPE\media\sources\boot.wim" /Index:1 /MountDir:"C:\WinPE\mount"
添加 WinPE 可选组件:
# Create OCs directory link in working directory C:\WinPE:
MkLink /J "C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs" "C:\WinPE\OCs"
# Add OCs: (OC and language CABs required for each OC)
Dism /Add-Package /Image:"C:\WinPE\mount" /PackagePath:"C:\WinPE\OCs\<name>.cab"
Dism /Add-Package /Image:"C:\WinPE\mount" /PackagePath:"C:\WinPE\OCs\en-us\<name>_en-us.cab"
# Change ownership to the Administrators group:
TakeOwn /A /F "C:\WinPE\mount\Windows\System32\winpe.jpg"
# Give Administrators group Full permissions:
Icacls "C:\WinPE\mount\Windows\System32\winpe.jpg" /SetOwner Administrators
我建议如下:
请参阅 5 种工具来创建 Windows To Go USB 的 Windows 10。
setup.exe
.USB 磁盘必须足够大以容纳 To Go 环境和 Windows ISO。
我不能保证这种方法会奏效,因为我从未尝试过。
不,因为WinPE是一个独立的引导WIM [ Windows IM时代],其中包含 WinPE OC [可选组件]:
WinPE-Setup
是 Windows 安装程序所必需的,它有七个配置通道:windowsPE
offlineServicing
specialize
,auditSystem
,auditUser
,oobeSystem
Microsoft Docs
WinPE.wim
,具有用于自定义/的两种途径WinRE.wim
:WinPE.wim
气球WinRE.wim
从 ~320MB 到 ~1.5GB+ 并且 WIM 越大,启动它所需的时间越长,因为 WIM 中的所有数据都必须安装 [提取] 到虚拟分区 [X:
]C:
分区的 WIM,则在引导至 WinPE 时仍可完成基本工作先决条件:
(设置:Windows 预安装环境)
PATH
:+ R→SysDm.cpl
→ OKPath
→编辑→新建:powershell
→ Ctrl+ Shift+ OK构建 WinPE 文件系统
必需的:
存在依赖项,按列出的顺序添加)
WinPE-WMI.cab
,WinPE-NetFx.cab
,WinPE-Scripting.cab
WinPE-EnhancedStorage.cab
,WinPE-FMAPI
,WinPE-SecureStartup
WinPE-Dot3Svc.cab
,WinPE-PPPoE
,WinPE-RNDIS.cab
,WinPE-WDS-Tools.cab
,WinPE-WiFi-Package.cab
WinPE-PowerShell.cab
,WinPE-DismCmdlets.cab
,WinPE-PlatformID
,WinPE-SecureBootCmdlets.cab
,WinPE-StorageWMI
WinPE-Rejuv.cab
,WinPE-SRT.cab
,WinPE-WinReCfg
WinPE-Setup
WinPE-Setup-Client.cab
WinPE-Setup-Server.cab
C:\WinPE\mount
Q-Dir.ini
SYSTEM
注册表配置单元中的隐藏文件:C:\WinPE\mount\Windows\System32\Startnet.cmd
C:\WinPE\mount\unattend.xml
] 进行管理,例如防火墙、网络和显示设置C:\WinPE\mount\Windows\System32\Winpeshl.ini
C:\WinPE\mount\Windows\System32\winpe.jpg
:winpe.jpg
为自定义.jpg
C:\WinPE\mount\Windows\System32\startnet.cmd
:.msu
请从Microsoft 更新目录对 WinPE 应用任何更新:MakeWinPEMedia
:OsCdImg
)必需:
WinPE-Rejuv
&WinPE-SRT
DiskPart
→Lis Vol
→Sel Vol #
→Assign Letter=Z
→Exit
ReAgentC
]DiskPart
→Sel Vol Z
→Remove
→Exit