I'm working in a large environment writing a utility for a tech support team. I need to provide a list of all the print servers in the domain and let them pick one. Once they pick a print server, I will list all the print queues on that print server and have them select one. I have found plenty of examples of how to pull the list of print queues from the print server, but no examples of how to get a list of print servers.
How can I get a list of all the print servers in a domain (C#)?
You can use the System.Management Namespace.
Please refer to this thread:
Is there a .NET way to enumerate all available network printers?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With