PowerShell / MMI

Other
25 stars 17 forks source link

Examples and best practice #46

Open gahujipo opened 4 years ago

gahujipo commented 4 years ago

We use this library as NuGet package in one of our C# products to access WMIv2 on Windows. Is this best practice or are there better options which are not marked as deprecated?

I found some usage examples here: https://docs.microsoft.com/en-us/previous-versions/windows/desktop/wmi_v2/how-to-get-a-specific-instance-of-a-class but those are already marked as not updated anymore. I tried to find the current version and ended here: https://docs.microsoft.com/en-us/dotnet/api/microsoft.management.infrastructure?view=pscore-6.2.0

But there are missing the examples. Is this package the way to go to fetch data in C# or is there a more recommended way now?