The command: "driverquery" is on Windows 11, 10, .. available
Here are some examples of the
`DRIVERQUERY` command in the Windows Command Prompt with explanatory comments:
Example 1: Show all installed drivers:
DRIVERQUERY
This command displays a list of all installed drivers on the system. Information such as the module name, display name, type, boot mode and status of the drivers are displayed.
Example 2: Show detailed information for a specific driver:
DRIVERQUERY /V /FO LIST /FI "MODULE eq ntoskrnl.exe"
This command displays detailed information about the driver with the module name
"ntoskrnl.exe". The
`/V` options display detailed information, and
`/FO LIST` formats the output as a list.
Example 3: Save list of drivers to a text file:
DRIVERQUERY /FO TABLE > Driverlist.txt
Here the list of installed drivers is saved in a text file called
"Driverlist.txt". The
`/FO TABLE` option formats the output as a table.
Example 4: Show only active drivers:
DRIVERQUERY /FO LIST /FI "STATUS eq Running"
This command displays a list of all active (running) drivers. The
`/FI "STATUS eq Running"` option filters the drivers according to their status.
Example 5: Filtering drivers by type:
DRIVERQUERY /FO LIST /FI "IMAGETYPE eq Kernel Mode Driver"
Only kernel mode drivers are shown here. The
`/FI "IMAGETYPE eq Kernel Mode Driver"` option filters the drivers by their image type.
Example 6: Export driver information as a CSV file:
DRIVERQUERY /FO CSV > driver information.csv
This command exports the driver information to a CSV file named
"driverinformation.csv". This can be useful for further processing the data in spreadsheet programs.
These examples are intended to give you an insight into how to use the
`DRIVERQUERY` command to retrieve information about drivers on a Windows system. Note that administrative privileges may be required to access some driver information.