Skip to content

pnputil printer driver builder

Add and remove printer drivers with pnputil

Add the maker's printer driver from its .inf, list what is in the driver store, delete an old oemNN.inf package or copy one out for another computer. Get the pnputil lines and the PowerShell line that installs the driver for printing, then paste what pnputil prints to read it back. It runs in your browser: nothing you type is sent to us.

Adding an HP Universal driver from C:\Drivers\Copier is an example. Pick what you want to do and type your own folder.

What to do

Where the maker's download was unzipped, on this computer or a share.

From the .inf's [Models] section. Leave blank to only add the package.

Paste this in PowerShell

Search Start for PowerShell, right-click it and choose Run as administrator.

The commands
pnputil /add-driver C:\Drivers\Copier\*.inf /subdirs /install
Add-PrinterDriver -Name 'HP Universal Printing PCL 6'
  1. 1Adds every .inf in the folder and the folders inside it to the driver store.
  2. 2Installs it for the spooler, so Add-Printer and the Add a printer window can use it. Run this line in PowerShell.

The pnputil lines also run in Command Prompt; the cmdlet lines need PowerShell.

pnputil only reads .inf files. If the maker sent an .exe, unzip it first (7-Zip opens most) or run it once with /extract if it offers that.

The driver name is in the .inf under its [Models] section, the text in quotes on each line. It is not the .inf's file name.

Run it in Command Prompt or PowerShell opened with Run as administrator. Reading the list needs no administrator.

Read the driver store

Paste what pnputil /enum-drivers printed. The printer packages come out with their oemNN.inf name, and an older copy of the same driver is marked so you delete the right one.

Nothing pasted yet. Press Try an example to see how it reads.

Read pnputil's message

Type what pnputil or Add-PrinterDriver said. The example is what deleting a package a printer still uses gives.

A printer or device still uses the package, so the store keeps it.

Delete the printers on that driver and uninstall it from the spooler, then delete the package again. /force skips the check, but those printers stop working.

Get-Printer | Format-List Name, DriverName

When pnputil does not do what it should

pnputil fills the Windows driver store. The print spooler then installs a print driver from it, the same one a print server would hand out.

  • pnputil added it but Add a printer does not list it

    pnputil puts the package in the driver store. Add-PrinterDriver with the name from the .inf installs it for the spooler; after that Add-Printer and the Add a printer window can use it.

  • Total driver packages: 0

    pnputil found no .inf where it looked. Most makers put it a folder or two down, so tick /subdirs. An .exe download has to be unzipped first.

  • Presently installed using the specified INF

    A printer still uses the driver. Remove those printers and Remove-PrinterDriver first, then delete the package. /force skips the check but those printers stop working.

  • Which oemNN.inf is the printer driver?

    The number is given out by each computer, so oem12.inf is not the same driver everywhere. Paste pnputil /enum-drivers into the reader above and match the Original Name and version.

No drivers to install on every computer.

pnputil puts a printer driver on one computer at a time. In KyberCopy the relay in the copy room sends each job to the printer over IPP, so teachers print from any device with no driver to install.

Book a demo