Forum Discussion
Jonesy6123
Aug 28, 2024Copper Contributor
Printer Driver not found in DriverStore even though the file is there
I have a script that installs printer drivers onto a machine. It has worked perfectly for years up until yesterday. This is the script: # This script works on Windows 8 or newer since the add-prin...
Sep 02, 2024
What does Get-PrinterDriver show you on that system? The driver you added using pnputil.exe is there? You must use Add-PrinterDriver with the correct name inside the .inf file to add it. I wrote a blog post about adding printers using Intune here https://powershellisfun.com/2022/12/05/adding-printer-drivers-and-printers-using-microsoft-intune-and-powershell/ and it's usually those things that go wrong
Jonesy6123
Sep 03, 2024Copper Contributor
Hi Harm,
As you can see from the above script I am definitely using Add-Printer -Name $driver which has successfully added the driver in the past. When I use Get-PrinterDriver, the expected driver does not appear.
As you can see from the above script I am definitely using Add-Printer -Name $driver which has successfully added the driver in the past. When I use Get-PrinterDriver, the expected driver does not appear.
- Sep 04, 2024I understand that, so either pnputil doesn't work / throws an error or you specify the wrong name using add-printer (check the inf file carefully)
If you run the commands for that manually, what does that do?- Jonesy6123Sep 04, 2024Copper ContributorVery same issue arises if I use the commands outside of the script. The thing that bothers me is that the INF file can in fact be found in the DriverStore, so it's on the machine.
- Sep 04, 2024
It will not add if you use add-printerdriver and supply the wrong driver name.
Use Windows to add the driver (from the print server options, add, browse to the driver, etc.) Then check the name of the driver that it shows you, remove the driver first, and use that name with add-printerdriver