avamk wrote:mr_smartepants wrote:I would still recommend our SAD utility but you'd have to add a runonce key to the registry to execute SAD and then have the script nuke itself and all folders once completed. Shouldn't be too hard.
Yes, adding a couple of runonce entries to my unattend.xml did the trick nicely on a test machine. The SAD utility was able to find and install the relevant drivers. Thanks!!
Can you post here the complete process, How you did it?
Sorry I'm no longer at that job, and it took me a while to unearth that old unattend.xml file. Looks like I added these things to the FirstLogonCommands section (just look at commands 3 and 4):
<FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<CommandLine>cmd /c del c:\windows\panther\unattend.xml</CommandLine>
<Order>1</Order>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<CommandLine>cmd /c del c:\unattend.xml</CommandLine>
<Order>2</Order>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<CommandLine>cmd /c "C:\SDI\SDI_R104.exe /autoinstall /autoclose /license /norestorepnt > C:\drivers_log.txt"</CommandLine>
<Order>3</Order>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<CommandLine>cmd /c "rmdir /S /Q C:\SDI >> C:\drivers_log.txt"</CommandLine>
<Order>4</Order>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<CommandLine>cmd /c "net user user /delete"</CommandLine>
<Order>5</Order>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<CommandLine>cmd /c "net user Administrator /active:yes"</CommandLine>
<Order>6</Order>
</SynchronousCommand>
</FirstLogonCommands>
The key are commands 3 and 4 in the list. Looks like I put all the driverpacks and the SAD utility into the image's C:\SDI folder, ran it with the "/autoinstall /autoclose /license /norestorepnt" switches, pumped the output into a log file (C:\drivers_log.txt), then deleted all the used files with command 4.
Hope this is still useful for you!