Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I want to Enumerate the printers present in a print cluster sitting on the active node of the cluster. The following link offers some help and it works:

http://microsoft.public.windows.server.clustering.narkive.com/bfPpwkU2/enumerating-cluster-printers[^]

But the problem is I need to have detailed information (port info , attributes etc.) which I can get using EnumPrinters() with level 2. I have not been able to successfully call EnumPrinters() with level 2 in a cluster environment with various combination of flags and parameters.

Is there a way to do this using EnumPrinters() or otherwise?
Posted
Comments
The_Inventor 20-Jun-13 6:44am    
Once you have the list generated by the EnumPrinters() with a level 1, from a cluster, then query each printer separately, and then make your report. Level 2 is more for local use. When looking at networked equipment, each printer has its own set of drivers, that the reporting CPU needs to have 'installed' to be able to do the query correctly.
kaushik_code 1-Jul-13 13:45pm    
Thanks ... Will try the same.

1 solution

I was able to successfully enumerate the printers by using \\clustername as the input in server name in EnumPrinters.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900