ManagementObject fastest route

StewartBW 1,805 Reputation points
2025-06-28T07:59:24.9566667+00:00

Hi experts,

Is my usage efficient?

I only need some properties like Manufacturer, Name, Description etc...

If I limit the properties to return by the ManagementObject it will run faster?

If so, what's the fastest way?

Dim Search As New ManagementObjectSearcher(New SelectQuery("Win32_Processor"))
For Each Info As ManagementObject In Search.Get

Info("Manufacturer")
Info("Name")
Info("Description")
etc...

Next

Thanks in advance :)

Windows development Windows API - Win32
0 comments No comments
{count} votes

Accepted answer
  1. Castorix31 90,521 Reputation points
    2025-06-28T12:03:32.37+00:00

    WMI is slow by its architecture

    To get processor information, the fastest way is with cpuid instruction, but complicated in VB.NET (with VirtualAlloc, ... AI can give code to be tested)

    Otherwise, a simple way is to read registry at :

    HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\CentralProcessor\0

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

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