I used this for polling printers on specific print server for printers like:
#Printer - Get devices like $remoteComputer = "PrintServer01" # Get printer information $printers = $printers = Get-CimInstance -ClassName Win32_Printer -ComputerName $remoteComputer | Where-Object { $_.Name -match '^SITE[-_]' } foreach ($printer in $printers) { $port = Get-CimInstance -ClassName Win32_TCPIPPrinterPort -ComputerName $remoteComputer | Where-Object { $_.Name -eq $printer.PortName } [PSCustomObject]@{ Name = $printer.Name IPAddress = $port.HostAddress #Model = $printer.DriverName #PrintServer= $printer.ServerName } }