Driverquery - DOS/Command Prompt Reference
[Windows XP Pro/Vista or later] Outputs a list of drivers installed on the system.
Syntax
driverquery[.exe] [/S <remote-system> [/U <user-name> [/P [<password>]]]] [/FO <output-format>] [/NH] [/SI] [/V]
Options
/S <remote-system> | Specifies the name of the computer (local/remote) from which to obtain the list of drivers. You can specify an IP address or hostname. If omitted, the local computer is targeted. | ||||||||
/U <user-name> [/P [<password>]] |
Specifies the login name and password when a computer name is specified. <user-name> can include a domain name in the format ‘domain\user-name’. If omitted, the user executing the command is used. If the password specification, ‘/P [<password>]’, is omitted entirely, no password is used. If only ‘/P’ is specified without <password>, a prompt will appear asking the user to input the password (the entered password is displayed as ‘*’). |
||||||||
/FO <output-format> |
Specifies the format of the output on the screen. The following three values can be specified. If /FO is omitted, it defaults to ‘TABLE’.
|
||||||||
/NH | Suppresses the header when outputting in TABLE or CSV format. | ||||||||
/SI | Adds information indicating whether the driver is signed. This item is not included in the output for /V. Note that /SI cannot be used together with /V. | ||||||||
/V | Outputs more detailed information. |
Details
Using Driverquery allows you to obtain a list of installed drivers. This information can be shared with system administrators for troubleshooting. Note that the list of drivers displayed by Driverquery may differ slightly from what is shown in ‘Device Manager’ (Driverquery is believed to display more information).
Driverquery does not have features for installing or uninstalling drivers. Use the inf files or tools provided with the driver, or use ‘Device Manager’ for such tasks.
Samples
Sample
driverquery /FO TABLE /NH /V | findstr /I /C:"usb"
Outputs a list of installed drivers related to USB. Since Driverquery does not have filtering features, Findstr is used for filtering.
* Filtering using Findstr is not suitable for checking only driver names. If you want to compare driver names, it is better to output in ‘/FO CSV’ format and interpret it with the For command.