自己常用DISM命令备忘录

注意:以下命令中的路径位相对路径,例如我的工作环境为D盘,则cmd里进入D根目录执行相关命令。

1 加载wim文件

dism /mount-wim /wimfile:boot.wim /index:1 /mountdir:winpe


2 查看当前path
dism /image:winpe /get-targetpath


3 设置当前path
dism /image:winpe /set-targetpath:x:\


4 提交修改
dism /commit-wim /mountdir:winpe


5 卸载wim文件
dism /unmount-wim /mountdir:winpe /commit
dism /unmount-wim /mountdir:winpe /discard


6 安装驱动
dism /image:winpe /add-driver /driver:D:\installdrivers\iusb3hub.inf


7 查看wim索引信息
dism /Get-ImageInfo /ImageFile:boot.wim


8 将目录文件封装程wim,防止wim文件每次编辑增大。
DISM.exe /Capture-Image /ImageFile:bootnew.wim /CaptureDir:winpe /Name:winpe /Compress:max /Bootable

猜你喜欢

转载自blog.csdn.net/ponew/article/details/62225603
今日推荐