List drivers on Windows XP or Windows 7 from command line

List drivers from command line

Drivers can be listed in various methods. WMI is one of those methods to list drivers.

c:> wmic path win32_pnpentity where (name like '%sixnet%') > pnp.txt

The above line uses WMI’s win32_pnpentity and looks for name matching sixnet. The results are output to pnp.txt file.

For details, check out http://msdn.microsoft.com/en-us/library/aa394084(v=vs.85).aspx