Pull local printers

(imported topic written by donald__small91)

I am looking for a way in which I can pull all computers that have physically attached local printers. i was able to set up a managed property, but it is pulling everything that it thinks is a local printer lik PDF writers, MS Office documents writers, etc. I would like a way to only pull physical printers attached via LPT1 or USB. Any thoughts?

(imported comment written by SystemAdmin)

Can you post the relevance for the property?

(imported comment written by donald__small91)

Looks like we got the following to work:

(value “printer driver” of it, value “port” of it) of keys whose (value “Port” of it as string contains “LPT” OR value “Port” of it as string contains “DOT4” OR value “Port” of it as string contains “USB”) of key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers” of registry as string

(imported comment written by SystemAdmin)

Good to see you got it working. I’m not able to test this right now, but it may not work with 64 bit machines that have 64 bit and 32 bit drivers.

(imported comment written by SystemAdmin)

I just got around to trying this and it seems to work well, unfortunetly some print to PDF drivers seem to be getting through since they attach themselves to LPT1. We will probably resort to filtering the report for those entries.