driverquery - List Installed Drivers
Table of Contents
The driverquery command displays a list of the device drivers installed on your computer.
From Command Prompt alone, you can see which drivers are loaded, whether they are signed, and where the driver files are located. It is also handy for recording the current state and sharing it when troubleshooting.
Basic syntax of driverquery
driverquery [/s <computer> [/u [<domain>\]<user> [/p <password>]]] [/fo {TABLE | LIST | CSV}] [/nh] [/v | /si]
Run without arguments, it prints the list of drivers as a table.
driverquery
By default, these four columns are shown.
| Column | Description |
|---|---|
| Module Name | Short name of the driver |
| Display Name | Display name of the driver |
| Driver Type | Kernel driver, file system driver, and so on |
| Link Date | Date and time the driver was built |
Column names and the contents of the list depend on the Windows display language and the drivers installed. The output above is an example to show the format.
Option reference
| Option | Description |
|---|---|
/v | Show detailed information such as state and file path |
/si | Show signature information (signed or not, manufacturer, INF file name) |
/fo | Choose the output format from TABLE, LIST, or CSV |
/nh | Hide column headers (for TABLE and CSV) |
/s | Specify a remote computer |
/u | Specify the user to connect to the remote computer with |
/p | Specify the password for the user given with /u |
Specify either /v or /si, not both. Using both results in an error.
Show detailed information (/v)
With /v, the output includes the driver state and file location in addition to the default columns.
driverquery /v
The main columns added are:
- Description and start mode
- State (running, stopped, and so on)
- Status details (such as
OK) - Whether the driver accepts stop and pause
- Memory-related columns (paged pool, code, BSS)
- Path (location of the driver file)
Verbose output makes each row very long, so combining it with /fo list is easier to read on screen.
driverquery /v /fo list
Check signature information (/si)
With /si, you can see whether each driver is signed, who the manufacturer is, and which INF file installed it.
driverquery /si
To find only unsigned drivers, filter with findstr or similar. The value that indicates whether a driver is signed can differ by display language, so check the output of driverquery /si first and then decide what string to search for.
If you prefer a GUI, the built-in file signature verification tool (sigverif) can also check signatures.
Save the result to a file
Using /fo csv and redirection, you can save the result to a file and open it in Excel or similar.
driverquery /v /fo csv > drivers.csv
If the file looks garbled in Excel, see the character encoding article listed under related articles.
To omit the header row, add /nh.
driverquery /fo csv /nh > drivers-nohead.csv
Find a specific driver
Pipe the output of driverquery to find or findstr to show only the drivers you want.
driverquery | find /i "usb"
/i makes the search case-insensitive. To look for network-related drivers:
driverquery | findstr /i "net nic wifi"
Record the driver list in a batch file
This batch file saves the current driver state to the desktop for when trouble occurs.
@echo off
setlocal
set "OUTFILE=%USERPROFILE%\Desktop\drivers.csv"
driverquery /v /fo csv > "%OUTFILE%"
if errorlevel 1 (
echo Failed to get the driver list.
exit /b 1
)
echo Saved to %OUTFILE%.
endlocal
Check the drivers on another computer
Specify a computer name or IP address with /s to check the drivers of another computer on the network.
driverquery /s PC-01 /u username
/u and /p are used together with /s. If you omit /p, you are prompted for the password. Typing a password directly on the command line can leave it in history, so it is safer to omit it and enter it interactively. Whether a remote connection works also depends on the firewall and permission settings of the other computer.
Summary
| Goal | Command |
|---|---|
| List drivers | driverquery |
| Show details such as state and path | driverquery /v |
| Show signature information | driverquery /si |
| Save to a CSV file | driverquery /v /fo csv > drivers.csv |
| Find a specific driver | driverquery | find /i "usb" |