A few years ago I wrote an article for TechNet Magazine on how to Automate Device Driver Integration for Windows image builds and deployment. The article is now somewhat dated since BDD/MDT and System Center Configuration Manager now handle much of this for you. However, I included with that article several scripts that can still be useful. One of those scripts, DriverInfInfo.vbs, can be used to retrieve provider and version info, Plug and Play IDs, and device descriptions for all device driver .inf files in a folder structure.
One request that comes up fairly frequently is to document the “in the box” drivers that come with Windows. This script can be used against a running Windows installation to generate such “in the box” driver information. Unfortunately, the version of the script included with the TechNet Magazine article could not handle the Unicode driver INF files included with Windows Vista and higher. The new version included below fixes that limitation.
Run the attached VBScript (using cscript from a command prompt) against the \Windows\INF folder (using the /folder switch) and it will create an information file of all the INF-based drivers included with Windows. However, this will also contain information about any “out of the box” drivers that have been installed. You can identify these because the INF file names will start with “OEM”. Output formats are INI, CSV, or XML. The CMD file included shows how to set the switches for DriverInfInfo.vbs. You can also run
cscript DriverInfInfo.vbs /?
from a command prompt for help on usage.
This post was contributed by Michael Murgolo, a Senior Consultant with Microsoft Services - U.S. East Region.