3

Is there a .NET api call to get all available print servers on a specific network domain. I've searched at length and haven't found one.

My goal is to retrieve all available printers for a print server, but I want to ensure the print server is up and running before trying to retrieve its mapped printers.

I have the call to get all of the printers for a print server, I just need to call to get available print servers on the network first.

Andrew Barber
  • 39,603
  • 20
  • 94
  • 123
KodeKreachor
  • 8,852
  • 10
  • 47
  • 64
  • System.Drawing.Printing.PrinterSettings.InstalledPrinters – L-Four Apr 22 '13 at 14:21
  • 1
    That will get all locally installed printers on a given computer/server. I need all print servers on a given network. – KodeKreachor Apr 22 '13 at 14:27
  • Sorry, misread your question. In that case, see http://stackoverflow.com/questions/1018001/is-there-a-net-way-to-enumerate-all-available-network-printers. It has a link to http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=741&lngWId=10 where it is explained how you can do it. – L-Four Apr 22 '13 at 16:59

0 Answers0