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
- 2183 reads
- Printer-friendly version

















Recent comments
2 hours 10 min ago
2 hours 42 min ago
3 hours 32 min ago
3 hours 42 min ago
3 hours 57 min ago
4 hours 12 min ago
4 hours 52 min ago
6 hours 24 min ago
6 hours 27 min ago
6 hours 28 min ago