Is there a way to pull the name(s) of all printers for a workstation?

(imported topic written by roSSco91)

Local as well as networked.

Help a newb! http://www.anotherls1.com/smile/1zhelp.gif

(imported comment written by roSSco91)

I know it’s in the registry…

HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\devices

(imported comment written by BenKus)

Welcome!

Does this help?

http://forum.bigfix.com/viewtopic.php?pid=28#p28

Ben

(imported comment written by roSSco91)

Ben Kus

Welcome!

Does this help?
http://forum.bigfix.com/viewtopic.php?pid=28#p28

Ben

I was able to get the network printers with that. Thanks! http://www.anotherls1.com/smile/27911mg.gif

I would like to get local printers as well. I think I can modify it to do that…

(imported comment written by roSSco91)

I used this and still only get network printer information, even though I know there are local printers for some of them.

if ((operating system as string = “WinXP 5.1.2600” OR (operating system as string = “Win2000 5.0.2195” AND value “ProductType” of key “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ProductOptions” of registry = “WinNT” )) AND exist key “HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\devices” of registry) then ((value “Name” of it, value “Printer Driver” of it, ) of keys of keys whose (name of it = “Printers” ) of keys of key “HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\devices” of registry) else nothings

(imported comment written by roSSco91)

Any suggestions for getting local printer info.?

(imported comment written by pmullins91)

AFAIK this is where local printer info is stored.

q: if (exists keys of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers" of registry) then ((value "Name" of it, value "Printer Driver" of it) of keys of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers" of registry) else (nothings)
A: Microsoft Office Document Image Writer, Microsoft Office Document Image Writer Driver
A: Microsoft Office Live Meeting Document Writer, Microsoft Office Live Meeting Document Writer Driver
A: Microsoft XPS Document Writer, Microsoft XPS Document Writer
A: PDFCreator, PDFCreator
T: 0.479 ms

(imported comment written by donald__small91)

I was able to create this fixlet, but how can I get this into a report? I need to be able to pull all assets that have a locally connected printer, including printer make and model

(imported comment written by mcalvi91)

you can use WMI to query the win32_printer class and from there use where clauses to isolate it down to what you want.

(imported comment written by SystemAdmin)

donald_ small

I was able to create this fixlet, but how can I get this into a report? I need to be able to pull all assets that have a locally connected printer, including printer make and model

We’re you able to get this into a report? I tried to build a web report that listed the computer, printer make and printer model but had little success. I also tried using the excel connector but had some filtering issues.

(imported comment written by donald__small91)

We ended up creating a new managed property using the below relevance, and then was able to use web reporting using the Computer Properties option.

(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

Hope this helps.

(imported comment written by SystemAdmin)

Donald,

We used the your relevance for the retried property and was finally able to get a report using the excel connector. We’d rather use web reports, but we couldn’t get the data we needed in a format that was acceptable. Looking forward to web reports 8 :slight_smile: