Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Interacting with WMI via .NET core

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?
like image 602
theroom101 Avatar asked Dec 26 '16 11:12

theroom101


1 Answers

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

like image 155
Mohan Kumar Avatar answered Oct 26 '22 19:10

Mohan Kumar