I work for a medium sized company and, due to the recent XP phaseout, we're rolling out Windows 7 on newer machines throughout the company. Unfortunately, we've had problems doing so as the computers contain RAID cards that require an additional driver.
I was pulled in to help, but have very little experience with sysprep and unattend.xml. Our current method (we've not yet gotten it working) is to persist all drivers on the machines using <PersistAllDeviceInstalls>true</PersistAllDeviceInstalls>
While I'm waiting for more info on that, I've begun working on another unattend.xml:
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="windowsPE">
<component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Diagnostics>
<OptIn>false</OptIn>
</Diagnostics>
<DynamicUpdate>
<Enable>false</Enable>
<WillShowUI>OnError</WillShowUI>
</DynamicUpdate>
<EnableFirewall>true</EnableFirewall>
<UserData>
<AcceptEula>true</AcceptEula>
<!-- <FullName></FullName>
<Organization></Organization> -->
</UserData>
</component>
<component name="Microsoft-Windows-PnpCustomizationsWinPE" processorArchitecture="amd64" 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="1">
<Path>%configsetroot%\drivers</Path>
</PathAndCredentials>
</DriverPaths>
</component>
</settings>
</unattend>
From what I've seen, this copies everything in %configsetroot%\drivers
to C:\Windows\ConfigSetRoot\
.
Assuming I have the following directories set up:
C:\WINDOWS\system32\sysprep>tree /f
Folder PATH listing
Volume serial number is 0006EFC4 64F5:C0E6
C:.
│ unattend.xml
│
└───drivers
lsi_sas.inf
lsi_sas.sys
R193683.txt
svlhx64.cat
And I run, for example sysprep.exe /oobe /generalize /unattend:unattend.xml
Will this unattend file work? If so, how can I make the driver install automatically? Should I perhaps run a SynchronousCommand? If I should do that, how can I install a driver from those files via a CMD command?