windows镜像添加驱动

一条for解决大部分问题,顺道学习for命令,其他缺失环节没打算复制过来。

@echo off
FOR /L %%i IN (0,1,8) DO  (
dism /mount-wim /wimfile:D:\iso\install.wim /index:%%i /mountdir:D:\%%i
dism /image:D:\%%i /add-driver /driver:D:\iso\2008drivers /recurse /forceunsigned
dism /unmount-wim /mountdir:D:\%%i /commit
 )

添加新评论 »