
Software environment: Windows 10 enterprise with Powershell
ISO:cn_windows_server_2008_r2_standard_enterprise_datacenter_and_web_with_sp1_vl_build_x_dv d_617396.iso
Intel_usb3.0_bit
.zip
解压ISO将sources目录里的boot.wim 跟install.wim 拷贝到C:\emp
解压驱动Usb3.0driver文件夹也丢到C:\emp
新建一个mount目录(用来挂载VIM文件)
使用管理员权限打开Powershell先查看一下两个VIM的Index信息
PS C:\emp> Get-WindowsImage -ImagePath .\\boot.wim
PS C:\emp> Get-WindowsImage -ImagePath .\\install.wim
Index 1 = Windows Server 2008 R2 Server Standard
Index 2 = Windows Server 2008 R2 Server Standard Core
Index 3 = Windows Server 2008 R2 Server Enterprise
Index 4 = Windows Server 2008 R2 Server Enterprise Core
Index 5 = Windows Server 2008 R2 Server Datacenter
Index 6 = Windows Server 2008 R2 Server Datacenter Core
Index 7 = Windows Server 2008 R2 Server Web
Index 8 = Windows Server 2008 R2 Server Web Core
先对boot.vim进行挂载,挂载到mount目录下(boot.wim需要分别挂载注入index1跟index2)“Boot.wim” has 2 indexes (1 & 2). The Intel USB 3.0 drivers need to be injected into both.
挂载boot.wim index:1PS C:\emp> Dism.exe /mount-wim /wimfile:boot.wim /index:1 /mountdir:mount
手动分别注入三个驱动文件
Dism.exe /image:mount /add-driver /driver:usb3.0driver\\iusb3hub.inf
Dism.exe /image:mount /add-driver /driver:usb3.0driver\\iusb3xhc.inf
Dism.exe /image:mount /add-driver /driver:usb3.0driver\\iusb3hcs.inf
完成后,commit一下
PS C:\emp> Dism.exe /unmount-wim /mountdir:mount /commit
挂载boot.wim index:2
PS C:\emp> Dism.exe /mount-wim /wimfile:boot.wim /index:2 /mountdir:mount
手动分别注入三个驱动文件
Dism.exe /image:mount /add-driver /driver:usb3.0driver\\iusb3hub.inf
Dism.exe /image:mount /add-driver /driver:usb3.0driver\\iusb3xhc.inf
Dism.exe /image:mount /add-driver /driver:usb3.0driver\\iusb3hcs.inf
完成后,commit一下
PS C:\emp> Dism.exe /unmount-wim /mountdir:mount /commit
Temp\\boot.vim文件注入完成
同样的方法挂载install.wim到mount目录(index:x x表示对应的系统版本,这里选择5 2008 R2 Server Datacenter)
Dism.exe /mount-wim /wimfile:install.wim /index:5 /mountdir:mount
手动分别注入三个驱动文件
Dism.exe /image:mount /add-driver /driver:usb3.0driver\\iusb3hub.inf Dism.exe /image:mount /add-driver /driver:usb3.0driver\\iusb3xhc.inf Dism.exe /image:mount /add-driver /driver:usb3.0driver\\iusb3hcs.inf
完成后commit一下
PS C:\emp> Dism.exe /unmount-wim /mountdir:mount /commit
可以直接将两个VIM文件替换到U盘中的sources文件夹中
2016年1月18日
Jarvis_zhuang
