Jump to content

computastar

Member
  • Posts

    1
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Germany

About computastar

computastar's Achievements

0

Reputation

  1. Hi osborned_rcc, I've been following the forum for a while now, and got some very useful information from it, so its about time I gave something back. I to use a similar method to the SetupCopyOEMInf.exe way, so like yourself was looking for a way to autorun rescan hardware. After much investigating I discovered the way that sysprep calls -pnp or the UpdateInstalledDriver key in Sysprep.inf. Sysprep uses many api calls that are in syssetup.dll, one of these call is UpdatePnpDeviceDrivers, so you can call this from a command line as shown below: RunDll32.exe Syssetup.dll,UpdatePnpDeviceDrivers You could use this in batch file or vbscript. You need to be careful with the case. It has to be as above or it will fail. Hope the helps. Computastar
×
×
  • Create New...