Friday, December 7, 2007

Generate a List of Installed Drivers from the Command Line

We've already covered how to take a quick look at the list of installed drivers using DriverView, but what if you are on a machine that doesn't already have that software installed? There's a command line utility that comes bundled with Windows Vista or XP that gives you similar output.

It's also useful if you are a command line junkie and have cygwin installed… you can just pipe the command through grep and quickly see exactly what you are looking for.

Running the command with no parameters will give you the default output:

image

To get verbose output you can use the /v parameter:

driverquery /v

Or to output in list or csv format instead of the default table format, you can use the /FO switch

driverquery /FO [list, table, csv]

So for instance, if you ran the following command to give you verbose information in list format:

driverquery /FO list /v

You should see output similar to this:

image

If you have cygwin installed you could pipe this through grep, but you should be able to pipe the output into a file, for instance like this:

driveryquery > test.txt

image

Always useful to know how to use the command line!

Source