Summary
Question
How to inject drivers using Windows Automated Installation Kit (WAIK) and Deployment Image Servicing and Management (DISM) into WinPE images
Answer
1. Download and install WAIK for windows 7 from following link:
http://www.microsoft.com/en-us/download/confirmation.aspx?id=5753
> within downloaded KB3AIK_EN.iso file you'll find wAIKAMD64.msi file
> install it
> run a cmd console as Administrator
> cd to C:\Program Files\Windows AIK\Tools\amd64>
2. Create a folder where wim images will be mounted later.
"c:\mount" in this case
3. Locate and copy wim images
Images are located on the HPSA boot server at:
/opt/opsware/boot/tftpboot/winpe/sources/opswarex64.wim
/opt/opsware/boot/tftpboot/winpe/sources/opswarex64-ogfs-enabled.wim# zip OPSWwinpe-A.B.C.D.zip /opt/opsware/boot/tftpboot/winpe/sources/opswarex64*.wim
Copy the zip file and extract it on Windows box:
C:\Data\driver_injection\OPSWwinpe31-50.0.34406.0\opswarex64.wim
C:\Data\driver_injection\OPSWwinpe31-50.0.34406.0\opswarex64-ogfs-enabled.wim
4. Download the drivers needed:
For example:
C:\Data\driver_injection\64bit\ibm_dd_sraidmr\megasas2.inf
C:\Data\driver_injection\64bit\ibm_dd_sraidmr_2008R2\megasas2.inf
5. Add drivers into the image
5.1 Adding drivers into opswarex64.wim
5.1.1 Get image info
C:\Program Files\Windows AIK\Tools\amd64>Dism /Get-WimInfo /WimFile:"C:\Data\driver_injection\OPSWwinpe31-50.0.34406.0\opswarex64.wim"
Deployment Image Servicing and Management tool
Version: 6.1.7600.16385Details for image : C:\Data\driver_injection\OPSWwinpe31-50.0.34406.0\opswarex64.wim
Index : 1
Name : HP OS Provisioning Image - x64
Description : <undefined>
Size : 1,176,534,940 bytesThe operation completed successfully.
5.1.2 Mount the image
C:\Program Files\Windows AIK\Tools\amd64>Dism /Mount-Wim /WimFile:"C:\Data\driver_injection\OPSWwinpe31-50.0.34406.0\opswarex64.wim" /Name:"HP OS Provisioning Image - x64" /MountDir:"c:\mount"
Deployment Image Servicing and Management tool
Version: 6.1.7600.16385Mounting image
[==========================100.0%==========================]
The operation completed successfully.5.1.3 Add drivers into the image
C:\Program Files\Windows AIK\Tools\amd64>Dism /Image:"C:\mount" /Add-Driver /Driver:"C:\Data\driver_injection\64bit\ibm_dd_sraidmr\megasas2.inf"
Deployment Image Servicing and Management tool
Version: 6.1.7600.16385Image Version: 6.1.7600.16385
Found 1 driver package(s) to install.
Installing 1 of 1 - C:\Data\driver_injection\64bit\ibm_dd_sraidmr_2008R2\megasas2.inf: The driver package was successfully installed.
The operation completed successfully.5.1.4 Unmount the image
C:\Program Files\Windows AIK\Tools\amd64>Dism /Unmount-Wim /MountDir:"C:\mount" /Commit
Deployment Image Servicing and Management tool
Version: 6.1.7600.16385Image File : C:\Data\driver_injection\OPSWwinpe31-50.0.34406.0\opswarex64.wim
Image Index : 1
Saving image
[==========================100.0%==========================]
Unmounting image
[==========================100.0%==========================]
The operation completed successfully.
5.2 Adding drivers into opswarex64-ogfs-enabled.wim5.2.1 Get image info
C:\Program Files\Windows AIK\Tools\amd64>Dism /Get-WimInfo /WimFile:"C:\Data\driver_injection\OPSWwinpe31-50.0.34406.0\opswarex64-ogfs-enabled.wim"
Deployment Image Servicing and Management tool
Version: 6.1.7600.16385Details for image : C:\Data\driver_injection\OPSWwinpe31-50.0.34406.0\opswarex64-ogfs-enabled.wim
Index : 1
Name : HP OS Provisioning Image - x64
Description : <undefined>
Size : 1,243,626,082 bytesThe operation completed successfully.
5.2.2 Mount the image
C:\Program Files\Windows AIK\Tools\amd64>Dism /Mount-Wim /WimFile:"C:\Data\driver_injection\OPSWwinpe31-50.0.34406.0\opswarex64-ogfs-enabled.wim" /Name:"HP OS Provisioning Image - x64" /MountDir:"c:\mount"
Deployment Image Servicing and Management tool
Version: 6.1.7600.16385Mounting image
[==========================100.0%==========================]
The operation completed successfully.5.2.3 Add drivers into the image
C:\Program Files\Windows AIK\Tools\amd64>Dism /Image:"C:\mount" /Add-Driver /Driver:"C:\Data\driver_injection\64bit\ibm_dd_sraidmr\megasas2.inf"
Deployment Image Servicing and Management tool
Version: 6.1.7600.16385Image Version: 6.1.7600.16385
Found 1 driver package(s) to install.
Installing 1 of 1 - C:\Data\driver_injection\64bit\ibm_dd_sraidmr_2008R2\megasas2.inf: The driver package was successfully installed.
The operation completed successfully.5.2.4 Unmount the image
C:\Program Files\Windows AIK\Tools\amd64>Dism /Unmount-Wim /MountDir:"C:\mount" /Commit
Deployment Image Servicing and Management tool
Version: 6.1.7600.16385Image File : C:\Data\driver_injection\OPSWwinpe31-50.0.34406.0\opswarex64-ogfs-enabled.wim
Image Index : 1
Saving image
[==========================100.0%==========================]
Unmounting image
[==========================100.0%==========================]
The operation completed successfully.
6. Repackage the wim images on the initial zip file:
OPSWwinpe31-50.0.34406.0_<timestamp>.zip
7. Install it on the Core/Satellite
# cp /mnt/.../.../OPSWwinpe31-50.0.34406.0_<timestamp>.zip /
# cd /
# unzip OPSWwinpe31-50.0.34406.0_hp.zipinflating: opt/opsware/boot/tftpboot/winpe/sources/opswarex64-ogfs-enabled.wim
inflating: opt/opsware/boot/tftpboot/winpe/sources/opswarex64.
Procedure compiled using: http://technet.microsoft.com/en-us/library/dd744355(v=ws.10).aspx