I’m attempting to solve printnighmare and get us off of a third-party solution by using Intune to deploy the printer drivers. This blogpost has been the template I’ve been learning from.
I’ve successfully deployed the drivers themselves by using pnputil to add them to the driverstore. I can confirm this with Get-Printerdriver and pnputil.exe /enum-drivers
. But when I try to use add-printer -connectionname
to map the printer, I’m given
add-printer : The driver needed to connect to this print share cannot be retrieved from the server and must be manually installed.
At line:1 char:1
+ add-printer -ConnectionName \\server\printer
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (MSFT_Printer:ROOT/StandardCimv2/MSFT_Printer) [Add-Printer], CimException
+ FullyQualifiedErrorId : HRESULT 0x80070bcb,Add-Printer
I’ve tried piping Get-printer
into Add-printer
to use the -Driverpath
parameter. But that forces me to create a port and name which bypasses the print server and maps it via IP address.
I’ve tried using the parameter set with -name
for the printer and -computername
for the server. This was recommended by bingAI, so I’m not surprised on this one.
I know I’ve tried more than this, but this is already a pretty long post.
Is there anything I can do to point add-printer to the locally installed driver when using the -connectionname
parameter set? Is there something obvious I’m missing? Do you have any suggestions on how I can handle this differently?