Finding all Windows Services using WMI in C# .NET
September 11, 2017 Leave a comment
In this post we saw how to retrieve all logical drives using Windows Management Instrumentation – WMI -, and here how to find all network adapters.
Say you’d like to get a list of all Windows Services and their properties running on the local – “root” – machine, i.e. read the services listed here:
The following code will find all non-null properties of all Windows services found:
