Hi All,
I am relatively new to Powershell. I am trying to write a script that will give me all printers with errors in their print queues. In addition I need to pull them from multiple servers. So far I have the following:
I keep getting an error related to the -computername parameter. No matter what I try with multiple server entries it does not work. It DOES work with a single server entry.
Running ‘Get-Help Get-Printer -Full’ will show you that the ComputerName parameter only accepts one string.
You will need to create a foreach loop and pass the computers in one at a time.
Thank You MUCH John! I notice there is no object for servername with Get-Printer. Do you know of a way to pull in the servername for each printer’s output?
Using your example, if you are just looking for the computer name to be part of the output you just need to add the ComputerName property to Format-List.