|

How To Use The Driverquery Command In Windows (2026)

Driverquery is a built-in Windows command that lists the device drivers installed on a computer and their properties.

It is a quick way to see what is installed before you update, roll back or reinstall a driver.

This guide covers each switch Microsoft documents for it.

Table of Contents

Driverquery quick answer

Open Command Prompt, type driverquery and press Enter to list the installed drivers on your PC.

GoalCommand
List installed driversdriverquery
Output as CSVdriverquery /fo csv
Output as a listdriverquery /fo list
Hide the header rowdriverquery /nh
Verbose outputdriverquery /v
Show signed driver informationdriverquery /si
Query another computerdriverquery /s server1

What the driverquery command does

The Microsoft Learn driverquery page says driverquery displays a list of installed device drivers and their properties.

If you run it with no parameters, it works on the local computer.

Microsoft lists Windows 11 and Windows 10 among the systems the page applies to.

Open Command Prompt and run driverquery

  1. Select Start and type Command Prompt.
  2. Open the Command Prompt result.
  3. Type driverquery and press Enter.

The list can be long, so the next sections show how to save it or change its format.

Driverquery syntax

Microsoft documents the command with this syntax.

driverquery [/s <system> [/u [<domain>\]<username> [/p <password>]]] [/fo {table | list | csv}] [/nh] [/v | /si]

Everything after the command name is optional.

Driverquery parameters

ParameterWhat it does
/s <system>Names or gives the IP address of a remote computer. Do not use backslashes. The default is the local computer.
/uRuns the command with the credentials of the account you name. It cannot be used unless /s is specified.
/p <password>Gives the password for the /u account. It cannot be used unless /u is specified.
/fo tableFormats the output as a table, which is the default.
/fo listFormats the output as a list.
/fo csvFormats the output as comma-separated values.
/nhOmits the header row. Not valid when /fo is list.
/vDisplays verbose output. Not valid for signed drivers.
/siProvides information about signed drivers.
/?Displays help at the command prompt.

Change the output format with /fo

The /fo switch decides how the list is printed.

driverquery /fo csv

CSV is the easiest format to open in a spreadsheet, where you can sort or filter the drivers.

The list format is easier to read on screen when the table wraps.

driverquery /fo list

Hide the header row with /nh

The /nh switch leaves out the header row, which helps when you feed the output to another tool.

driverquery /nh

Microsoft says /nh is not valid when /fo is set to list.

Show more detail with /v

The /v switch displays verbose output.

driverquery /v

Microsoft adds that /v is not valid for signed drivers, so it cannot be combined with /si.

Check signed drivers with /si

The /si switch provides information about signed drivers.

driverquery /si

Use it when you want to see how driver signing applies to what is installed on the PC.

Microsoft says to use /si instead of /v for signed driver information.

Save the driver list to a file

You can send any command output to a text file with the greater-than sign, which is the same redirection technique our other command guides use.

  1. Open Command Prompt.
  2. Type driverquery /fo csv > drivers.csv and press Enter.
  3. Open drivers.csv from the folder shown at the prompt.

The file lands in the folder that the Command Prompt window is currently in.

Keeping a copy before and after a driver update lets you compare the two lists.

Run driverquery on another computer

Add /s with a computer name or IP address to query a remote system.

driverquery /s server1

To use another account, add /u with the user name, and /p with its password.

driverquery /s server1 /u maindom\user1

Microsoft’s page shows a version with /p as well, but typing a password into a command leaves it visible on screen.

Never put a backslash in the /s value, because Microsoft says to use only the computer name or IP address.

Microsoft’s example commands

CommandWhat it does
driverqueryLists installed drivers on the local computer
driverquery /fo csvOutput in CSV format
driverquery /nhHides the header row
driverquery /s server1Runs on the remote server server1 with your current credentials
driverquery /s server1 /u maindom\user1 /p passwordRuns on server1 with the credentials of user1 on the domain maindom

Which switches work together

CombinationAllowed?
/u without /sNo, /u needs /s
/p without /uNo, /p needs /u
/nh with /fo listNo
/v with signed driver informationNo, use /si
/fo with /sYes

If a command returns an error, check this table before anything else.

What to do once you find a driver

Driverquery only reads information, so it does not change any driver.

To act on a driver, Microsoft documents these paths in Device Manager.

TaskPath in Device Manager
Update a driver automaticallyRight-click the device, select Update driver, then Search automatically for updated driver software
Update from a downloaded fileUpdate driver, then Browse my computer for drivers
Roll back a driverRight-click the device, select Properties, then the Driver tab, then Roll Back Driver
Reinstall a driverRight-click the device, select Uninstall device, then restart

Microsoft says to download drivers only from the device maker’s official site.

You open Device Manager by right-clicking Start and selecting it.

The steps are on Microsoft Support.

Update a driver manually

Microsoft describes this route for a driver you downloaded from the manufacturer.

  1. Download the driver that matches your Windows version and architecture, and extract it if needed.
  2. In Device Manager, expand the category, right-click the device and select Update driver.
  3. Choose Browse my computer for drivers, select Browse, pick the driver folder and select OK.
  4. Select Next and then Close.

Windows installs the driver if it is newer.

If yours is current, you will see the message that the best drivers for your device are already installed.

If Windows cannot find a driver at all, Microsoft says to try Windows Update first, then the manual method, and then contact the device maker.

Related guides

These guides cover nearby tasks.

Sources

The syntax, parameters, examples and notes come from the Microsoft Learn driverquery page.

The Device Manager steps come from Microsoft Support.

Leave a Reply

Your email address will not be published. Required fields are marked *