How can I locate all the network printers in the enterprise?
Posted
by AngryHacker
on Stack Overflow
See other posts from Stack Overflow
or by AngryHacker
Published on 2010-03-31T21:16:07Z
Indexed on
2010/04/01
1:03 UTC
Read the original article
Hit count: 780
When I go to Printers and Faxes dialog, I can click the Add a printer
link, select Network Printer
, then Find a printer in the directory
. From there I get a dialog box which lets me find ALL printers in the enterprise.
I need to find all the network printers with my code. How can I do this?
Note that I am not talking about network printers that are connected to my PC, but all network printers in the enterprise (my workplace has almost 4000 printers).
P.S. PrintServer().GetPrintQueues only returns printers attached to the computer.
P.P.S. Here is a short video of what I want: http://www.angryhacker.com/toys/FindAllPrinters/FindAllPrinters.html
© Stack Overflow or respective owner