Hello,
I added the Printerdriver with no issue ( Add-PrinterDriver -Name "HP Officejet Pro 9010 series PCL-3")
When I try and add the Printer I get the error below , trying to get it to add as a WSD
What am I missing ?
Add-Printer -DriverName "HP Officejet Pro 9010 series PCL-3" -Name "HP 9010" -PortName (Get-PrinterPort -Name LocalPort*).Name
Add-Printer : Cannot validate argument on parameter 'PortName'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again.
At line:1 char:88
+ ... -3" -Name "HP 9010" -PortName (Get-PrinterPort -Name LocalPort*).Name
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData:

) [Add-Printer], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationError,Add-Printer
Below is a screen shot of the port settings when windows adds the printer
Below is the output when running the powershell command
