driverquery command in Windows 8 is used for displaying all the drivers which are installed in your Windows computer. It also displays module name, driver type (kernel or file system) and link date.
To open command prompt in Windows 8, press Windows key + X. Then, click on “Command Prompt (Admin)”. If you get a message “Do you want to allow the following command to make changes to this computer?”, click on “Yes”.
Then, type: driverquery and hit Enter.
There are different types of options, switch and values which can be used along with driverquery. Options are used with driverquery in the following format:
1) /v option: This option is used for displaying detailed information about the drivers.
2) /si option: This option is used for displaying device name, InfName, and manufacturer information for the signed drivers.
3) /fo option: This option is used for displaying drivers in a particular format. For Example, command: driverquery /fo list will display drivers in a list format, command: driverquery /fo csv will display the drivers in a csv format and command: driverquery /fo table will display the drivers in a tabular format.
You can also download the driver file by using the following command, like:
driverquery /fo csv > dr.csv
and then, hit Enter.
File dr.csv will be saved in the following location: Computer –> C: –> Windows –> System32
4) /nh option: When this option is used, header row is not displayed for /fo table or /fo csv command.
Header row is not displayed when you type in the following commands: driverquery /fo table /nh and driverquery /fo csv /nh
5) /s comp option: This option is used for connecting to a remote computer. Here, comp is the name of the remote computer.
6) /u user option: You can use the driverquery command for a particular user account or a domain by using this option.
7) /p pass option: This option is used for specifying password of user. It is used with /u option.