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
- What the driverquery command does
- Open Command Prompt and run driverquery
- Driverquery syntax
- Driverquery parameters
- Change the output format with /fo
- Hide the header row with /nh
- Show more detail with /v
- Check signed drivers with /si
- Save the driver list to a file
- Run driverquery on another computer
- Microsoft’s example commands
- Which switches work together
- What to do once you find a driver
- Update a driver manually
- Related guides
- Sources
- More Windows guides
Driverquery quick answer
Open Command Prompt, type driverquery and press Enter to list the installed drivers on your PC.
| Goal | Command |
|---|---|
| List installed drivers | driverquery |
| Output as CSV | driverquery /fo csv |
| Output as a list | driverquery /fo list |
| Hide the header row | driverquery /nh |
| Verbose output | driverquery /v |
| Show signed driver information | driverquery /si |
| Query another computer | driverquery /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
- Select Start and type Command Prompt.
- Open the Command Prompt result.
- Type
driverqueryand 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
| Parameter | What it does |
|---|---|
| /s <system> | Names or gives the IP address of a remote computer. Do not use backslashes. The default is the local computer. |
| /u | Runs 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 table | Formats the output as a table, which is the default. |
| /fo list | Formats the output as a list. |
| /fo csv | Formats the output as comma-separated values. |
| /nh | Omits the header row. Not valid when /fo is list. |
| /v | Displays verbose output. Not valid for signed drivers. |
| /si | Provides 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 csvCSV 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 /nhMicrosoft says /nh is not valid when /fo is set to list.
Show more detail with /v
The /v switch displays verbose output.
driverquery /vMicrosoft 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 /siUse 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.
- Open Command Prompt.
- Type
driverquery /fo csv > drivers.csvand press Enter. - 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 server1To use another account, add /u with the user name, and /p with its password.
driverquery /s server1 /u maindom\user1Microsoft’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
| Command | What it does |
|---|---|
driverquery | Lists installed drivers on the local computer |
driverquery /fo csv | Output in CSV format |
driverquery /nh | Hides the header row |
driverquery /s server1 | Runs on the remote server server1 with your current credentials |
driverquery /s server1 /u maindom\user1 /p password | Runs on server1 with the credentials of user1 on the domain maindom |
Which switches work together
| Combination | Allowed? |
|---|---|
| /u without /s | No, /u needs /s |
| /p without /u | No, /p needs /u |
| /nh with /fo list | No |
| /v with signed driver information | No, use /si |
| /fo with /s | Yes |
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.
| Task | Path in Device Manager |
|---|---|
| Update a driver automatically | Right-click the device, select Update driver, then Search automatically for updated driver software |
| Update from a downloaded file | Update driver, then Browse my computer for drivers |
| Roll back a driver | Right-click the device, select Properties, then the Driver tab, then Roll Back Driver |
| Reinstall a driver | Right-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.
- Download the driver that matches your Windows version and architecture, and extract it if needed.
- In Device Manager, expand the category, right-click the device and select Update driver.
- Choose Browse my computer for drivers, select Browse, pick the driver folder and select OK.
- 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.
More Windows guides
- How To Use The Arp Command In Windows (2026)
- How To Use The Schtasks Command In Windows (2026)
- How To Use The Reg Add Command In Windows (2027)
- How To Use The Getmac Command In Windows (2026)
- How To Use The Findstr Command In Windows (2027)
- How To Use The Whoami Command In Windows (2027)
See all: Windows 11 Guides