WMI Query to Class "win32_Service" takes lot of time to return the output.

Pankaj Vishwakarma 1 Reputation point
2021-10-18T07:18:37.597+00:00

Somehow on one of Server 2016, a simple WMI query (Get-WmiObject win32_Service) to the "win32_Service" class is taking unexpected time to return the output.
Whereas if I run the same query on the cloned server, I get the result instantly.
I tested the output over PowerShell as well as over 'wbemtest' GUI both and the time involved to show the output is almost the same i.e. > 4 mins.
I tried to enable the WMI trace as well in the event viewer, but do not see any error.
Any help to diagnose the problem would be helpful.

Thank You
Pankaj V.

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,113 questions
0 comments No comments
{count} votes