How to enumerate network printers

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Howdy,

I need to be able to enumerate all the visible hosts on a windows network and list all their printers, in the same way that the windows add printer wizard does.

I have no problem listing printers that have already been installed on the local machine using both WMI and the GetPrinter/OpenPrinter APIs.

My question is how to enumerate all hosts with printers visible on the windows network but not installed on the computer running my software.

thanks

Jim Howard
.



Relevant Pages

  • Re: How to enumerate network printers
    ... By combining the MSDN examples for NetServerEnum and NetShareEnum I was able to write a program that does enumerate the computers and printers on the network. ...
    (microsoft.public.vc.mfc)
  • Re: Enumerate Printers for local user profiles????
    ... names and password on your local machine, you can enumerate the instances ... Set colInstalledPrinters = objWMIService.ExecQuery _ ... > connected printers. ...
    (microsoft.public.win32.programmer.wmi)
  • Re: Enumerating Local Physical Printers
    ... writers and fax drivers masquerading as printers are also turned up in ... drivers by looking at the PRINTER_ATTRIBUTE_FAX bit of the Attributes ... Did you try using the following API to enumerate the ... locally installed printers: ...
    (microsoft.public.win32.programmer.wmi)
  • Re: Enumerating Printer Drivers Help Please
    ... I need to be able to Enumerate through Printer Drivers, ports, printers and so fourth. ... I have added a reference to the PRNADMIN.DLL from MS Windows 2003 Tool Kit into my project to do all of the above, but when i try to enumerate printers i received the following error.... ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Enumerating Printer Drivers Help Please
    ... > I need to be able to Enumerate through Printer Drivers, ports, printers ... And even add printers, ports, and drivers and setup ...
    (microsoft.public.dotnet.languages.csharp)