murphy78's DiskPart and Apply script is a small WINPE project that allows users to utilize dism and diskpart techniques
to set up BIOS-booting and UEFI-booting systems.
这是一个通过DISM和DISKPART工具实现系统安装的WINPE项目,可安装BIOS和UEFI两种启动模式的操作系统。
使用ADK完成带有该工具的ISOcopype amd64 c:\winpe_amd64
dism /mount-wim /wimfile:c:\winpe_amd64\media\sources\boot.wim /index:1 /mountdir:c:\winpe_amd64\mount
:Copy over the x64 folder's contents to the c:\winpe_amd64\mount\ directory
:Do not copy over the entire x64 folder, just the contents.
:ALSO don't forget to copy over your install.esd, install*.swm, or install.wim file to the c:\winpe_amd64\media\sources\ folder
pause
dism /unmount-wim /mountdir:c:\winpe_amd64\mount /commit
dism /export-image /sourceimagefile:c:\winpe_amd64\media\sources\boot.wim /sourceindex:1 /destinationimagefile:c:\winpe_amd64\boot.wim /checkintegrity
move /y c:\winpe_amd64\boot.wim c:\winpe_amd64\media\sources\
:Make boot-prompt image with UEFI boot support (press any key blah blah)
oscdimg -bc:\winpe_amd64\fwfiles\efisys.bin -pEF -u2 -udfver102 -bootdata:2#p0,e,bc:\winpe_amd64\fwfiles\etfsboot.com#pEF,e,bc:\winpe_amd64\fwfiles\efisys.bin -lYourImageLabelMax32chars c:\winpe_amd64\media\ c:\winpe_amd64\YourISOName.iso