WMI and large amount of data being returned causing high CPU usage

James Martin 1 Reputation point

We are trying to monitor a Windows Server 2019 machine that is a dedicated print server with a very high volume of print queues attached to it, around 12,000!

Hardware Specs


When using WMI functions such as Win32_Printer to get the printer information even if we filter the objects to return only the fields we absolutely require it is causing the CPU to spike to 100%. We have trouble shot this down to the sheer volume of the data being returned as running the same process on a server with only 1000 queues attached does cause CPU usage to increase but to nowhere near the extent as the server with the very high number of queues attached. These bursts of 100% CPU usage are only brief but we would like to eliminate them if we can as it is giving false positives in our hardware monitoring that we have to follow up each time. Also breaking the queries up into 100 or 1000 printer batches still caused an increase of CPU usage of around 20 - 30% which again can take us over our hardware monitoring thresholds.

My question is does the community know of any more efficient ways to get this sort of information about printers and their queues not using WMI or the CIM_Printer classes please?

Thanks in advance for any assistance!



Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,736 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Fay Wang - MSFT 5,206 Reputation points


    Welcome to Microsoft Q&A!

    Currently, Microsoft Q&A is under a public preview. All the supported topics are on the right top. You can go to this forum to ask this question.


    0 comments No comments

  2. James Martin 1 Reputation point

    Hi Fay Wang,

    The Forum you have referred me too: Windows Server 2019 General” Forum will be migrating to a new home on Microsoft Q&A anyway according to this link!


    Therefore instead of sending me into a reciprocal never ending loop where this never gets a real answer from Microsoft like most technical questions posted to you guys, is there anyone in Microsoft Land that can answer the question posted? Is WMI or CIM the only way to get Printer information in bulk like I am proposing or not?

    Thanks in advance,



    0 comments No comments