0

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?

2
  • According to this thread on the Technet forums WMI won't work. Commented Sep 13, 2016 at 21:21
  • Thank you for the article! I found a way to get the information out of the cluster. I exported the complete printserverconfiguration directly in print management with PrintBRM. The exported file with the extension ".printerExport" I extracted winzip. In the extracted folder I have now XML-Files with all information of pritnerqueues. drivers, ports... Not the way I was looking for, but a nice workaround. Commented Sep 14, 2016 at 12:41

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.