查看wim文件中包含几个安装版本:
dism /get-wiminfo /wimfile:D:\install.wim
选择需要加载驱动的版本号:
dism /mount-wim /wimfile:D:\install.wim /index:3 /mountdir:D:\temp
导入驱动:
dism /image:D:\temp /add-driver /driver:D:\win08r2 /recurse /forceunsigned
写入install.wim:
dism /unmount-wim /mountdir:D:\temp /commit
打补丁:
dism /image:D:\temp /add-package /packagepath:D:\windowupload2008
替换原版install.wim/boot.wim文件即可生成新的iso文件
(清理失败的挂载:Dism /Cleanup-Wim)
ps:需要用“管理员”身份打开命令提示符
D:\temp为提取iso中windows对应的.wim存放位置
D:\win08r2为驱动存放位置
D:\windowupload2008为补丁存放位置