Closed OgJAkFy8 closed 5 years ago
Added a "get printer port command" in front it and changed the line : $PortName = (get-printer -ComputerName $PrintServer -Name $PrinterName).PortName $PrinterIpAddress = Get-PrinterPort -ComputerName $PrintServer -Name $PortName
Added a "get printer port command" in front it and changed the line : $PortName = (get-printer -ComputerName $PrintServer -Name $PrinterName).PortName $PrinterIpAddress = Get-PrinterPort -ComputerName $PrintServer -Name $PortName
$PrinterIpAddress = Get-PrinterPort -ComputerName $PrintServer -Name $PrinterName | Select-Object -ExpandProperty PrinterHostAddress -ErrorAction SilentlyContinue