The Driver Scan (DSCAN.EXE) utility can perform the following functions:
When you issue a dscan command against a directory that contains device-driver directories, dscan performs its tasks against all of the subdirectories that the directory contains, with the exception of the drvutils directory. The drvutils directory contains two utilities, Holdit.exe and Reboot.exe, that are used by the unattend utility.
The Driver Scan utility stores information in an INI file named drvinfo.ini in the device-driver directory, for use by the unattend.exe utility. If the drvinfo.ini file already exists for the device driver, it is left unchanged. See DRVINFO.INI for information about the drvinfo.ini file. See UNATTEND.EXE for information about the unattend.exe utility.
The Driver Scan utility can also merge text mode device drivers into a single directory. This merges the device-driver files and the txtsetup.oem files for use in unattended installations. If the destination directory for text mode drivers already exists, it is automatically deleted and recreated.
The Driver Scan utility automatically assumes that the device driver being scanned is applicable to all target servers. To make a device driver server-specific, you must modify the drvinfo.ini file to reflect the servers that the device driver supports.
dscan <driver_path> [/S|/SS|/T[:path]] [/M:machine_type/platform_ID] [/H:filename
[/OW] [/V:n] [/W:n] [/O:file_name] [/?]
Parameter | Description |
---|---|
|
Defines the fully qualified path to the directory
to scan for device drivers. Each driver is assumed to be in a separate
subdirectory within this path. If driver_path has $oem$ in the path, the Driver Scan utility creates the $oem$\textmode directory and merges the text mode device drivers. If the /SS parameter is used, the path is assumed to be the path to a single device driver. |
|
Specifies to scan device drivers and create drvinfo.ini files only, if necessary. Text mode device drivers are not merged when this parameter is used. |
|
Specifies to scan a single device driver and create the drvinfo.ini file only, if necessary. Text mode device drivers are not merged when this parameter is used. |
|
Specifies to build the text mode device drivers
only. Other device drivers are not scanned, and drvinfo.ini files
are not created when this parameter is used. If path is specified, the text mode device drivers are merged to the specified path. Otherwise, the driver_path parameter must have $oem$ in the path so that the text mode device drivers are merged into the $oem$\textmode directory. |
|
Specifies a machine type, where machine_type is the machine type of the target server or platform ID, where platform_ID is the platform ID of the target server, that is used to limit merging of the text-mode device drivers. If this parameter is not specified, all text-mode device drivers are merged. The /T parameter is required to use this parameter. |
|
Specifies a fully-qualified path and file name for the hwdetect.ini file that was created by the hwdetect.exe utility. This will limit the merging of the text mode device drivers to only those drivers detected in the system. |
|
Overwrites the text-mode drivers without deleting and recreating the text-mode directory. This parameter is not valid with the /S parameter or the /SS parameter. |
|
Specifies the verbose level used to report status
during the deployment process. Valid values for n are:
|
|
Specifies the version of Microsoft Windows for
the device drivers:
|
|
Combines the information in the DrvInfo.Ini files into a single file specified by the file_name value |
|
Displays usage information |
Value | Description |
---|---|
0 | Success |
1 | Syntax error |
2 | Program error |
3 | Destination is read-only |
Example | Description |
---|---|
|
Scans a device-driver set in c:\insttemp\$oem$\$1\drv, creates the drvinfo.ini files for each device driver, and builds the text-mode directory |
|
Scans a device-driver set in c:\drv and creates drvinfo.ini files for each device driver, but does not build the text mode device drivers |
|
Scans a single device driver in d:\drv\mydriver and creates the drvinfo.ini file for that device driver, but does not build the text mode device driver |
|
Builds the text mode directory in c:\w2\$oem$\textmode using device drivers found in c:\w2\$oem$\$1\drv, but does not create any drvinfo.ini files |
|
Builds the text mode directory in c:\other\textmode using device drivers found in c:\drivers, but does not create drvinfo.ini files |