The pnpunattend command and the pnputil command in Windows
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:
- Create a directory for the driver you want to install.For example, create a folder at C: DriversVideo for thevideo adapterdriver (video adapter).
- 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 .
- Adding a system environment path may change to the folder you created in step 1. Example: C: DriversVideo.
- Create the registry key and then, with DriverPath that you create, set Value Data to a value of 1.
- For Windows® 7, navigate to the Registry path: HKEY_LOCAL_MachineSoftwareMicrosoftWindows NTCurrentVersion , and then create the following key: UnattendSettingsPnPUnattendDriverPaths
- 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:
- Append command in Windows
- The assoc in Windows command
- Auditpol command in Windows
- The atmadm command in Windows
You should read it
- Del command in Windows
- Set command in Windows
- Cmd command in Windows
- Command at in Windows
- Fc command in Windows
- Reg command copy in Windows
- The echo command in Windows
- The command reg add in Windows
- Bitsadmin getdisplayname and bitsadmin geterror command in Windows
- Rem command in Windows
- Doskey command in Windows
- Exit command in Windows
Maybe you are interested
What to do when open command window here does not appear?
How to switch users on the Linux command line
How to fix Mac Homebrew error 'zsh: command not found: brew'
What is the Command key on Windows?
How to use read command in Linux
Basic Linux commands everyone needs to know - Operations on Linux are much faster