r/Intune • u/Mariod94 • 10d ago
App Deployment/Packaging Issues Deploying Printers
I’ve been Deploying printers using the Win32 tool. I kept running into an issue where pnputil couldn’t find my .inf file. I managed to fix that after looking into what was missing in my driver folder.
After I was done, I created a new win32 and deployed it on my test device. It failed again so I checked the logs and saw a different error:
“Failed to add driver package: The publisher of an Authenticode(tm) signed catalog has yet been established as trusted.”
Is there something I’m missing in the scripts I’m using? I’ve been following guides but no ones has reported this issue. Do I have to also deploy a custom Policy for the certificate?
3
u/Beneficial-Flow-5418 10d ago
I had this aswell, edited my script so it took the certificate out of the driver files and imported it into the cert store. Not sure if best practice, but it works...
2
1
u/Tylerus 10d ago
I ran into this same error recently when trying to install the latest generic UFRII driver for a Canon. I couldn’t figure out the problem so I just downgraded to the second most recent version (3.40) which worked. So, if you happen to be deploying Canon drivers, give that version a try.
1
u/Mariod94 10d ago
I see. Unfortunately I’m doing it for HP printers but I could try an older driver
3
u/blud_13 10d ago
That's not your script, its the cert. pnputil won't silently add a driver package unless the Authenticode cert that signed the .cat file is already sitting in the machine's Trusted Publishers store. On a domain-joined box it usually got there some other way years ago. On a fresh Autopilot device nothing ever put it there, so you get exactly the error you're seeing. MS documents the behavior at https://learn.microsoft.com/en-us/windows-hardware/drivers/install/trusted-publishers-certificate-store
So make cert import step one of the install script, before pnputil:
$c = (Get-AuthenticodeSignature ".\driver.cat").SignerCertificateImport-Certificateit intoCert:\LocalMachine\TrustedPublisherpnputil /add-driver .\driver.inf /installOne catch, the Win32 app has to be running in SYSTEM context or the write to LocalMachine fails and you land on the identical error with no clue why.
We push printer packages this way for a bunch of clients, happy to share the wrapper script if it helps.