Updated: April 17, 2012
Applies To: Windows Vista, Windows Server 2008, Windows 7, Windows Server 2008 R2, Windows Server 2012, Windows 8
Audits a computer for device drivers, and perform unattended driver installations, or search for drivers without installing and, optionally, report the results to the command line. Use this command to specify the installation of specific drivers for specific hardware devices. See Remarks.
Specifies online driver install.
Required, except when pnpunattend is run with either the /Help or /? parameters.
Optional. Specifies to search for drivers without installing.
Optional. Specifies to display the log information for this command in the command prompt.
Optional. Displays help for this command at the command prompt.
Preliminary preparation is required. Prior to using this command, you must complete the following tasks:
Create a directory for the drivers you want to install. For example, create a folder at C:\Drivers\Video for video adapter drivers.
Download and extract the driver package for your device. Copy the contents of the subfolder that contains the INF file for your version of the operating system and any subfolders to the video folder that you created. For example, copy the video driver files to C:\Drivers\Video.
Add a system environment path variable to the folder you created in step 1.For example, C:\Drivers\Video.
Create the following registry key, and then for the DriverPaths key you create, set the Value Data to 1.
For Windows® 7 navigate the Registry path: HKEY_LOCAL_Machine\Software\Microsoft\Windows NT\CurrentVersion\, and then create the keys: UnattendSettings\PnPUnattend\DriverPaths\
For Windows Vista, navigate to the Registry path: HK_LM\Software\Microsoft\Windows NT\CurrentVersion\, and then create the keys = \UnattendSettings\PnPUnattend\DriverPaths.
The following example command shows how to use the PNPUnattend.exe to audit a computer for possible driver updates, and then report the findings to the Command Prompt.
pnpunattend auditsystem /s /l