Hi @HinW ,
maybe the cmdlet Add-PrinterDriver
is helpful to get this done: Add-PrinterDriver
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I would like a PowerShell script that can install a printer driver.
I have a INF file stored in C:\temp\hpPrinter\autorun.inf
I tried below line of code in powershell but get an error saying that.
Code:
$infPath = 'C:\temp\hpPrinter\autorun.inf'
pnputil.exe -i -a $infPath
Error:
Microsoft PnP Utility
Adding driver package: autorun.inf
Failed to add driver package: The third-party INF does not contain digital signature information.
Total driver packages: 1
Added driver packages: 0
Thanks
Hi @HinW ,
maybe the cmdlet Add-PrinterDriver
is helpful to get this done: Add-PrinterDriver
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
Comments have been turned off. Learn more
Double post