Two Minute Drill: DriverQuery.exe

Hello AskPerf!  Blake here to discuss an internal command line tool called DriverQuery.  What exactly is DriverQuery?  I’m glad you asked.  In a nutshell, DriverQuery is a command line tool that displays a list of all installed device drivers and their properties.  Let’s check out its options and some examples.  When you type “DriverQuery /?” from a command prompt, the following appears:

 

DQ

Now let’s take a look at some DriverQuery examples:

Show all installed device drivers which includes Module Name, Display Name, Driver Type, and Link Date

C:\>Driverquery.exe

*To display addition columns (see below), add the “/V” switch

Module Name, Display Name, Description, Driver Type, Start Mode, State, Status, Accept Stop, Accept Pause, Paged Pool, Code(bytes,  BSS(by,  Link Date, Path, Init(bytes

 

Show all installed device drivers in a list view

C:\>Driverquery.exe /fo list

 

Do not list the column header

C:\>Driverquery.exe /nh

 

Find drivers that are not signed

C:\>Driverquery.exe /si | findstr FALSE

 

Find drivers that are currently Running

C:\>Driverquery.exe /v |findstr Running

 

For most of these commands, you may want to add the “>” command redirection option to output the results to a .txt file.  For example:

C:\>Driverquery.exe /v > C:\results.txt

 

Additional Resources:

-Blake Morrison