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.
Paste this in PowerShell
Search Start for PowerShell, right-click it and choose Run as administrator.
pnputil /add-driver C:\Drivers\Copier\*.inf /subdirs /install
Add-PrinterDriver -Name 'HP Universal Printing PCL 6'- 1Adds every .inf in the folder and the folders inside it to the driver store.
- 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, DriverNameWhen 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.
Take it further
- PowerShell add printer builderDriver installed? Add the printer by IP address with its port, sides and paper set.
- PrintUIEntry command builderDelete a driver by its name, open the drivers list, or connect a shared printer for every user.
- Get-Printer PowerShell builderSee which printers use which driver before you delete a package.
- Print queue clear commandSpooler stuck after a driver change: stop it, clear the spool folder and start it again.
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