The pnpunattend command and the pnputil command in Windows

Pnpunattend command and pnputil command

Pnpunattend command

Check the computer fordevice drivers(device drivers)and perform unattended driver installations, or search for drivers without having to install and report the results to the command line.In addition, use this command to specify the specific driver settings for specific hardware devices.See the glossary.

Syntax pnpunattend command

 PnPUnattend.exe auditSystem [/ help] [/?] [/ H] [/ s] [/ L] 

The pnpunattend command parameter

Parameters

Describe

auditSystem

Specify the driver installation online.

This parameter is required, unless the pnpunattend command is run with / Help or /?

/S

Optional.Specifies the driver search without installation.

/ L

Optional.Specify to display log information for this command in the command prompt.

/?

Optional.Show help for this command at the command prompt.

The pnpunattend command comment

Before using this command, you must complete the following tasks:

  1. Create a directory for the driver you want to install.For example, create a folder at C: DriversVideo for thevideo adapterdriver (video adapter).
  2. Download and unzip the driver package for your device.Copy the contents of the subdirectory that contains INF files for your operating system version, and any subdirectories into the video folder you created.For example, copy the video driver files to C: DriversVideo .
  3. Adding a system environment path may change to the folder you created in step 1. Example: C: DriversVideo.
  4. Create the registry key and then, with DriverPath that you create, set Value Data to a value of 1.
  5. For Windows® 7, navigate to the Registry path: HKEY_LOCAL_MachineSoftwareMicrosoftWindows NTCurrentVersion , and then create the following key: UnattendSettingsPnPUnattendDriverPaths
  6. For Windows Vista, navigate to the following Registry path: HK_LMSoftwareMicrosoftWindows NTCurrentVersion , and then create the key = UnattendSettingsPnPUnattendDriverPaths.

For example

The following command example shows how to use PNPUnattend.exe to check a computer for possible driver updates, and then report the findings in the command prompt.

 pnpunattend auditsystem / s / l 

The command pnputil

Pnputil.exe is a command line utility that you can use to manage the driver store repository.You can use Pnputil to add driver packages, remove driver packages, and list driver packages in stock.

Syntax of pnputil command

 pnputil.exe [-f | -i] [-? | -a | -d | -e] 

Parameter command pnputil

Parameters

Describe

-a

Specifies to add the specified INF file.

-d

Specifies to delete the INF file that has been defined.

-e

Specifies to list all third party INF files.

-f

Specifies to be forced to delete the specified INF file.Cannot be used in conjunction with the -i parameter.

-i

Specifying the installation of the INF file has been determined.Cannot be used in conjunction with the -f parameter .

/?

Show help for this command at the command prompt.

Example of pnputil command

Add the INF file specified by USBCAM.INF:

 pnputil.exe -aa: usbcamUSBCAM.INF 

Add all INF files in c: drivers:

 pnputil.exe -ac: drivers * .inf 

Add and install the specified driver:

 pnputil.exe -i -aa: usbcamUSBCAM.INF 

List all third party drivers:

 pnputil.exe –e 

Delete the specified INF file:

 pnputil.exe -d oem0.inf 

Required to delete the specified INF file:

 pnputil.exe -f -d oem0.inf 

See more:

  1. Append command in Windows
  2. The assoc in Windows command
  3. Auditpol command in Windows
  4. The atmadm command in Windows
4 ★ | 122 Vote