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

Pankaj Vishwakarma 11 Reputation points
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 for business | Windows Server | User experience | Other
0 comments No comments
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.