枚举群集打印机。 [英] Enumerating cluster printers.
问题描述
我想枚举位于群集主动节点上的打印群集中的打印机。以下链接提供了一些帮助,它可以工作:
http://microsoft.public.windows.server.clustering.narkive.com/bfPpwkU2/enumerating-cluster-printers [ ^ ]
但问题是我需要获得详细信息(端口信息,属性等),我可以使用级别2的EnumPrinters()获得。我无法在集群中成功调用级别为2的EnumPrinters()有各种标志和参数组合的环境。
有没有办法用EnumPrinters()或其他方法做到这一点?
我能够使用\\clustername作为EnumPrin中服务器名称的输入成功枚举打印机TER值。
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?
I was able to successfully enumerate the printers by using \\clustername as the input in server name in EnumPrinters.
这篇关于枚举群集打印机。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!