Injecting Drivers during audit mode for syspreping Windows 7 and then Fogging
- 
 Myself, Tom and james are looking to working on this as a plugin potentially may take sometime… just watch this space  
- 
 Definitely! 
- 
 Good news! There was nothing wrong with the script. It deleted the Drivers folder after they installed collect along with the unattend.xml. Thanks for everyone’s help! it wasn’t until I pushed the image to a different model PC that I noticed it worked correctly. The first one I was using as testing grounds, apparently is missing a driver. Thanks Again! 
- 
 For info, the vbscript function we use to check for presence of a particular device id is below. 
 This allows us to install the associated software as well rather than just the inf files.
 the command line utility Devcon is available from Microsoft at the following link.
 [url]http://support.microsoft.com/kb/311272[/url]Function device_present(device) 
 Dim cmd,oShell,ScriptPath,rexec,strtext
 ScriptPath = Left(WScript.ScriptFullName, Len(WScript.ScriptFullName) - Len(Wscript.ScriptName))
 cmd=Scriptpath & “drivers\devcon find " & device & “*”
 'msgbox cmd
 Set oShell = CreateObject(“WScript.Shell”)
 set rexec= oShell.exec(cmd)
 strtext=”"
 strtext=Ucase(rexec.stdout.readall())
 if(InStr(1,strtext,“NO MATCHING DEVICES FOUND”,1) >0 )Then
 device_present=false
 else
 device_present=true
 End If
 'wscript.echo strtext
 End function
- 
 Very nice script! 

