Interacting with WMI via .NET core

8.8k views Asked by At

I need to get information about system such as: motherboard info, hdd info, e.t.c. in OS Windows. I can get it from wmi service. But I need to gather it with .NET core application.

I know in .NET application there interface IWbemServices to interact with WMI service, but I can't find something similar in .NET core.

So I have a questions:

  • Can I create COM object with .NET core application. If it's "yes" then how can I do it?
  • Are there other ways to get information about hardware, through .NET core?
1

There are 1 answers

3
Mohan Kumar On BEST ANSWER

The query is now available in Windows Compatibility Pack under System.Management.