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:

  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

May be interested

  • Instructions for using Command PromptInstructions for using Command Prompt
    deep in windows is a command-line world that is obscure. in this article, we will show you how to solve errors and make your computer more secure.
  • Rd command in WindowsRd command in Windows
    the rd command helps delete a directory
  • Cmd command in WindowsCmd command in Windows
    the cmd command starts a new version of the command interpreter, cmd.exe. if used without parameters, cmd will display copyright information and the version of the operating system.
  • How to use the command history function in Command PromptHow to use the command history function in Command Prompt
    command prompt is an extremely familiar command for anyone using windows operating system. besides, a lot of current software also supports the command line to perform actions on the command prompt window, instead of on the screen.
  • The sfc command in WindowsThe sfc command in Windows
    (applies to windows server (semi-annual channel), windows server 2016, windows server 2012 r2, windows server 2012)
  • Reg command copy in WindowsReg command copy in Windows
    to copy an entry to the location specified on the local pc or the remote computer we will use the reg copy command. to learn more about how to use the reg copy command, you can track the syntax, explain the command parameters and the example tipsmake.com has compiled below.
  • Fc command in WindowsFc command in Windows
    the fc command compares two files or a collection of files and displays the differences between them.
  • The echo command in WindowsThe echo command in Windows
    the echo command displays the message or turns on / off the command repeat feature. if used without parameters, the echo command will display the current echo setting.
  • Xcopy command in WindowsXcopy command in Windows
    the xcopy command is a command prompt command used to copy one or more files or folders from one location to another. with many options and the ability to copy entire directories, the xcopy command is similar to, but much more powerful, than the copy command.
  • The cacls command in WindowsThe cacls command in Windows
    the cacls command displays or modifies an arbitrary access control list (dacl) on the specified file. the command applies to windows server (semi-annual channel), windows server 2016, windows server 2012 r2, windows server 2012.