DriverQuery.exe

Display a list of all installed device drivers and their properties.

Syntax
      driverquery  [/s Computer] [/u Domain\User /p Password]
         [/fo {TABLE|LIST|CSV}] [/nh] [/v] [/si]

Key
   /s Computer     The name or IP address of a remote computer
                  (do not use backslashes). Default = local computer.

   /u Domain\User  Run the command with the account permissions of the
                   user specified. Default = the currently logged on user.

   /p Password     The password of the user account that is specified in the /u parameter.

   /fo { TABLE | LIST | CSV } 
                   Format the output. Default = TABLE.

   /nh   Omit the header row from the displayed driver information.
         Valid when the /fo parameter is set to TABLE or CSV.

   /v    Display verbose driver information.

   /si   Display digital signature information for all device drivers. 

Examples

Show all installed device drivers in Table output:
driverquery

Show all installed device drivers in a CSV format:
DriverQuery /fo csv

Without a header:
DriverQuery /nh

Drivers that are not signed:
DriverQuery /si | findstr FALSE

Find drivers that are currently Running:
Driverquery.exe /v |findstr Running

Show installed device drivers on a remote machine
driverquery /s ipaddress

Show installed device drivers on server64 and authenticate as a different user:
driverquery /s server64 /u ss64Ddom\user123 /p p@sswor3d /fo list

Export a verbose listing of drivers to a file
driverquery /v /fo csv > T:\driverlist.csv

When running DriverQuery within PowerShell, the CSV output format can be used to turn the output into objects. The PowerShell function below turns DriverQuery into a graphical tool that will list drivers from both local and remote systems (assuming you have the appropriate permissions.)

function Show-DriverDialog {
    param(
        $ComputerName = $env:computername
    )
    
    driverquery.exe /S $ComputerName /FO CSV  | 
      ConvertFrom-Csv | 
      Out-GridView -Title "Driver on \\$ComputerName"
}

Function via Peter Bishop @ Powershell.com

“He who asks a question is a fool for five minutes; he who does not ask a question remains a fool forever” ~ Chinese Prover

Related:

DevCon - Device Manager Command Line Utility


© Copyright SS64.com 1999-2013
Some rights reserved