Forum Discussion
Jamal1245
Jun 01, 2020Copper Contributor
unable to use inputobject in get-printjob
I need a way to see if a printer object on a remote computer has a printjob stuck to it. I found out out "get-printjob" command from https://docs.microsoft.com/en-us/powershell/module/printmanageme...
- Jun 02, 2020
Jamal1245 It looks like the documentation is not up-to-date. Inputobject is not a valid parameter anymore. You need to replace it with -PrinterObject. See the snippet below:
$printer = Get-Printer "Canon MP550 series Printer" Get-PrintJob -PrinterObject $printer
Good Luck!
Manfred de Laat
Manfred101
Jun 02, 2020Iron Contributor
Jamal1245 It looks like the documentation is not up-to-date. Inputobject is not a valid parameter anymore. You need to replace it with -PrinterObject. See the snippet below:
$printer = Get-Printer "Canon MP550 series Printer"
Get-PrintJob -PrinterObject $printer
Good Luck!
Manfred de Laat
- Jamal1245Jun 04, 2020Copper Contributorthanks. I will try it.