Vista Driver Injection for Unsigned Drivers
Filed under:
Deployment Solution
Automation, Vista Migration, Imaging
Submitted by Dan Waksman on 5 August, 2008 - 14:50.
When adding a Create Disk Image task for a Vista image and modifying the advanced sysprep properties, selecting "install additional drivers" and adding a path will allow drivers to be injected into the image.
However, the problem with this, is that you will be prompted for unsigned drivers after pulling down the image with a Distribute Disk Image task. To get around this, I created a custom InstallDrivers.xml in the Deploy directory:
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="offlineServicing">
<component name="Microsoft-Windows-PnpCustomizationsNonWinPE" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<DriverPaths>
<PathAndCredentials wcm:action="add" wcm:keyValue="0">
<Path>\\%DSSERVER%\eXpress\Drivers/Path>
</PathAndCredentials>
</DriverPaths>
</component>
</settings>
<cpi:offlineImage cpi:source="wim:c:/vistadist/install_x86.wim#Windows Vista BUSINESS" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>
Then, I have a task run pre-boot in WinPE automation mode to handle the driver injection "offline" using pkmgr.exe from the WAIK:
REM Add Vista drivers offline REM Token Replacement for InstallDrivers.xml file REM ReplaceTokens .\Deploy\InstallDrivers.xml .\Deploy\temp\%COMPNAME%.xml REM Run pkgmgr.exe .\WAIK\Tools\%PROCTYPE%\Servicing\pkgmgr.exe /o:"c:\;c:\windows" /n:".\Deploy\temp\%COMPNAME%.xml" Del .\Deploy\temp\%COMPNAME%.xml /Q
(21 votes)
- Login or register to post comments
- 2036 reads
- Printer-friendly version

















Recent comments
38 min 59 sec ago
1 hour 45 min ago
6 hours 42 min ago
9 hours 11 min ago
11 hours 30 min ago
11 hours 55 min ago
11 hours 59 min ago
12 hours 16 min ago
14 hours 27 min ago
14 hours 32 min ago