vpankaj1181 avatar image
0 Votes"
vpankaj1181 asked

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

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

0 Answers