SysPrep Driver Scanner

SysPrep Driver Scanner Screenshot
SysPrep Driver Scanner Download
Free Download SysPrep Driver Scanner 2.1.0

SysPrep Driver Scanner is a tool that is useful for system administrators. It will automatically scan a path that you supply and will register the paths so that SysPrep will use them during a mini-setup.

With it you can very easily enumerate drivers for use with Microsoft's System Preparation Tool instead of manually entering data into the sysprep.inf's OEMPnPDriversPath. This tool works with all versions of Windows 2000, Windows XP and Windows Server 2003 and you can either use a graphical user interface (GUI) or execute it with command line parameters for use from a batch script.

The purpose of this tool is to provide system administrators an easy when to roll out ever-changing Windows 2000 and Windows XP images that use the Microsoft System Preparation Tool (SysPrep) by using this tool to enumerate your Windows drivers. You provide the tool with a base directory path and a extension type. Then when you tell it to run a scan it will search through that directory along with all subdirectories for files that match your extension. The recommend search is for a SysPrep driver store and with the extension set to inf so that it properly enumerates drivers. It will then only pick up directories that contain those matched files, in this example *.inf files, and then add those settings into the Windows registry so that when the SysPrep mini-setup runs it will search those directories. This program is meant to be run right before the SysPrep resealing is started, so it is suggest you add it to a batch file that has this program precede your sysprep.exe execution. The program also accepts command-line parameters to automate the process.

Please note that this program makes it so you don't need a OemPnPDriversPath line in your sysprep.inf file. In fact, all that line does is copy that data into the registry when it's run. This is a great benefit because the OemPnPDriversPath can only be 4096 bytes, whereas the registry value can be as large as a REG_EXPAND_SZ, so you can have much larger paths this way. In fact there is no direct limit to the size of the registry key, but the key itself can't contain more than 64,000 bytes when combined with the other data values. You should be aware though that the more paths you provide to SysPrep for the minisetup the longer the Plug and Play detection time because each device needs to scan these directories for relevant INF files. Don't let that worry you though because the INF files are small and unless you have thousands of directories the time should be fairly low.

Instructions for General Usage
The program can be run in one of two ways. The first way is from the GUI and the second is from the command-line. They can also be used in conjunction with each other. Please read these instructions first and then read the section on command-line parameters as they will build off these instructions.

When the application is run you will be presented with an empty list. It will default the extension to "inf" and the "Search Path" to "C:\sysprep\drivers", but these can be changed from the available edit boxes. Typically you will not want to change the default extension since I gave the option for potential flexibility.

When you press the "1. Scan" button it will recurse through the "Search Path" for all files that match the extension type. If this is a directory that contains a lot of files and/or subdirectories then it could take a few moments. When the scan is completed then you should verify that the directories listed are ones that you want.

You can refine the list by using the "Add" button to create manual entries from other directories that are not provided. You should most likely add "c:\windows\inf", where "c:\windows" is your Windows folder. This folder is the default search folder for Plug and Play detection, so you should make sure it gets added along with your SysPrep drivers.

You can also remove items from the list, so if you notice that it added folders that aren't applicable to your operating system then you can manually remove them. An example would be a driver bundle that contains drivers for Windows 95, 98, Me, NT4, 2000 and XP when only you want the XP folder. The better way would be to delete the unneeded folders from the driver search path, but you can also just remove them from this list.

When you have properly verified the list you should then use the "2. Save" button. This will dump the listed items into the registry so that those paths will be scanned automatically when SysPrep starts its mini-setup. You can verify that the path is correct by using regedit and browsing to HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion and viewing the DevicePath value of type REG_EXPAND_SZ. It should contain all of the paths that are listed from the driver scanner in that string value.

When it's done scanning and you have saved the contents to the registry you can then exit the program by using the "3. Done" button (or from the system menu or from the upper corner x).

You should also read the section on the command-line to learn how to automate the use of this program.

Automation (Command-line Parameters / Arguments )

I designed the program so that it can be run from a batch file right before the computer is resealed by sysprep.exe. This means that you can completely automate its scan and that your driver database will be completely up-to-date everytime you SysPrep the computer. All that you need to do is keep the files in the driver path updated and this program will do all the manual work for you. I personally recommend that you place the SPDrvScn program executable (spdrvscn.exe) in your sysprep folder along with your other SysPrep files and add it to a batch file that executes spdrvscn.exe before sysprep.exe. I go into more detail about this later on in this section.

You can easily test the program to see if it's working from the command-line. You can run it without all of the command-line arguments except /q and it will scan the paths and import them into the registry, but it will present you with the dialogs. This way you can see the list it imports and any pop-up messages that you would normally get from the GUI.

The program syntax is:
spdrvscn.exe [/p [search_path]] [/e [extension]] [/d [append_path]] [/o [duplicator_text]] [/m [manufacturer_text]] [/a] [/s] [/q] [/f] [/i] [/?]

The license of this software is Freeware, you can free download and free use this driver & update software.

Driver & Update Software Related Downloads: