Thanks for any assistance.
With over 35+ print servers to manage. I would prefer to use my Scripting machine to manage my servers. Many things work great. Adding, removing, modifying. ETC... However, we recently added a few new printer models to our fleet. The universal drivers or current drivers do not work, So I am adding discrete drivers for each model.
From my PowerShell Server I want to push everything. I even copied the driver folders to every server.. to try varients of the script. I do not want to remote onto each server and do this.
I try something like this.. (Eventually do a function for each $server in $servers) SO I can deploy it and forget it...)
Add-PrinterDriver -Name "HP Color LaserJet flow MFP M880 PCL 6" -ComputerName -PrintSRV1 -InfPath C:\Print\Drivers\HP_M880\hpcm810c.inf
or this
Add-PrinterDriver -Name "HP Color LaserJet flow MFP M880 PCL 6" -ComputerName -PrintSRV1 -InfPath\\AB-PrintSRV1\c$\Print\Drivers\HP_M880\hpcm810c.inf
(2008 and 2012 server mixed)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Add-PrinterDriver : One or more specified parameters for this operation has an invalid value.
At line:1 char:1
+ Add-PrinterDriver -Name "HP Color LaserJet flow MFP M880 PCL 6" -ComputerName Pr...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (MSFT_PrinterDriver:ROOT/StandardCimv2/MSFT_PrinterDriver) [Add-
PrinterDriver], CimException
+ FullyQualifiedErrorId : HRESULT 0x80070057,Add-PrinterDriver
Thanks,
Bob