Problems with WMI on cluster

  • Thread starter Thread starter Arild Bakken
  • Start date Start date
A

Arild Bakken

Hi,

I'm trying to enumerate printers on a printcluster using WMI. However, the
result is always empty when I run the query against the virtual server
(script is run remotely). If I run the query against the node instead, I
only get printers defined on that node, which is just a couple, while the
virtual server has about one thousand printers. I've tried both the
Win32_Printer and the Win32_PrinterConfiguration classes, both with the same
result - nothing. I know the code is correct since it works as expected when
run against a regular server. Using regular windows API methods works
correctly, however WMI would be our preffered choice.

Is anyone aware of any issues related to using those WMI classes on a
cluster? Enumerating fileshares on a filecluster (and also on the
printcluster) works, so it seems to be specific to the printer classes.

Could the cluster or the printers be configured incorrectly?


Any help is appreciated,

Arild
 
I ran into the same problem

Microsoft has indicated that the WIN32 WMI provider is still not cluster aware. So You and I are stuck at this point. You might want to file a bug to expedite the issue.
 
Thanx for the info.

We ended up using the prnadmin.dll that comes with the Windows 2000 Support
Tools (or Resource Kit - always get them mixed up). It gives us most of the
information we need.


Arild

Long Phuong said:
I ran into the same problem.

Microsoft has indicated that the WIN32 WMI provider is still not cluster
aware. So You and I are stuck at this point. You might want to file a bug to
expedite the issue.
 
Back
Top