I want to get the printerport information from a printcluster on windows server 2008 r2. On a normal printserver I do this with powershell and a wmi-query, something like this:
Get-WmiObject -computer localhost -class "Win32_TCPIPPrinterPort" | select HostAddress
This query doesn't work on a printcluster environment, with computername "localhost" I get only the local installed ports. But the queues I want are in the cluster. Also when I change the computername to the clustername this query doesn't work.
Is there a WMI class, where you can access the printerinformation like queues, driver or ports from a printcluster?