Can we discover USB attached printers?

robin850
Giga Contributor

Is it possible to discover usb-attached printers? Basically a local (non-networked) printer. What sort of information can we get from it?

cheers,

robin850

3 REPLIES 3

doug_schulze
ServiceNow Employee
ServiceNow Employee

You sure can..We can gather any WMI statistic and your not alone in your quest...

http://social.msdn.microsoft.com/Forums/en/csharpgeneral/thread/95915c3f-ec52-42b8-8511-6f74d75a9ff8


thanks Doug.

okay, fellow Discovery users. Who else is digging for locally attached printers and how did you do it?

cheers,

robin850


Robin,
I haven't written one yet, but you should be able to fairly easily adapt this PowerShell script to what you need (PowerShell discovery is available in June 2011 Preview 3). This may be more of what you're looking for anyway--you can see ALL the USB-connected devices, and populate a "USB Device" table if you like.

http://blogs.msdn.com/b/powershell/archive/2007/02/24/displaying-usb-devices-using-wmi.aspx

I just wrote a PS script to get the size of the various users' My Documents folder, but haven't had a chance to test it yet, as my customer isn't *quite* on Preview 3--they're waiting for the full release.