System.Management 10.0.0-rc.2.25502.107
About
Provides access to a rich set of management information and management events about the system, devices, and applications instrumented to the Windows Management Instrumentation (WMI) infrastructure. Not supported on other platforms.
Key Features
- Consume Windows Management Instrumentation (WMI) data and events
 - High performance extensible event mechanism
 
How to Use
Retrieve management information
using System.Management;
// Get the WMI class
ManagementClass managementClass = new("Win32_Processor");
// Loop through the WMI class instances and print the processor information found
foreach (ManagementObject managementObject in managementClass.GetInstances())
{
    Console.WriteLine("--- Processor information ---");
    Console.WriteLine($"Name: {managementObject["Name"]}");
    Console.WriteLine($"Architecture: {managementObject["Architecture"]}");
}
Query management information via the SelectQuery type
using System.Management;
// Search for win32 services with a stopped state
SelectQuery selectQuery = new("Win32_Service", "State = 'Stopped'");
ManagementObjectSearcher managementObjectSearcher = new(selectQuery);
foreach (ManagementObject service in managementObjectSearcher.Get())
{
    Console.WriteLine(service.ToString());
}
Main Types
The main types provided by this library are:
System.Management.ManagementClassSystem.Management.ManagementObjectSystem.Management.SelectQuery
Additional Documentation
- Conceptual documentation
 - System.Management API documentation
 - System.Management.ManagementClass documentation
 
Feedback & Contributing
System.Management is released as open source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.
Showing the top 20 packages that depend on System.Management.
| Packages | Downloads | 
|---|---|
| 
                                                    Google.Apis.Auth
                                                     The Google APIs Client Library is a runtime client for working with Google services.
This package includes auth components like user-credential, authorization code flow, etc. for making authenticated calls using the OAuth2 spec. 
                                                 | 
                                                81 | 
| 
                                                    Google.Apis.Auth
                                                     The Google APIs Client Library is a runtime client for working with Google services.
This package includes auth components like user-credential, authorization code flow, etc. for making authenticated calls using the OAuth2 spec.
Supported Platforms:
- .NET Framework 4.5
- .NET Framework 4.6.1
- .Net Standard 1.3
- .Net Standard 2.0 
                                                 | 
                                                80 | 
| 
                                                    Google.Apis.Auth
                                                     The Google APIs Client Library is a runtime client for working with Google services.
This package includes auth components like user-credential, authorization code flow, etc. for making authenticated calls using the OAuth2 spec.
Supported Platforms:
- .NET Framework 4.5
- .NET Framework 4.6.1
- .Net Standard 1.3
- .Net Standard 2.0 
                                                 | 
                                                78 | 
| 
                                                    Google.Apis.Auth
                                                     The Google APIs Client Library is a runtime client for working with Google services.
This package includes auth components like user-credential, authorization code flow, etc. for making authenticated calls using the OAuth2 spec. 
                                                 | 
                                                74 | 
| 
                                                    Google.Apis.Auth
                                                     The Google APIs Client Library is a runtime client for working with Google services.
This package includes auth components like user-credential, authorization code flow, etc. for making authenticated calls using the OAuth2 spec. 
                                                 | 
                                                72 | 
| 
                                                    Google.Apis.Auth
                                                     The Google APIs Client Library is a runtime client for working with Google services.
This package includes auth components like user-credential, authorization code flow, etc. for making authenticated calls using the OAuth2 spec.
Supported Platforms:
- .NET Framework 4.5
- .NET Framework 4.6.1
- .Net Standard 1.3
- .Net Standard 2.0 
                                                 | 
                                                71 | 
| 
                                                    Google.Apis.Auth
                                                     The Google APIs Client Library is a runtime client for working with Google services.
This package includes auth components like user-credential, authorization code flow, etc. for making authenticated calls using the OAuth2 spec. 
                                                 | 
                                                71 | 
| 
                                                    Google.Apis.Auth
                                                     The Google APIs Client Library is a runtime client for working with Google services.
This package includes auth components like user-credential, authorization code flow, etc. for making authenticated calls using the OAuth2 spec. 
                                                 | 
                                                70 | 
| 
                                                    Google.Apis.Auth
                                                     The Google APIs Client Library is a runtime client for working with Google services.
This package includes auth components like user-credential, authorization code flow, etc. for making authenticated calls using the OAuth2 spec. 
                                                 | 
                                                44 | 
| 
                                                    Google.Apis.Auth
                                                     The Google APIs Client Library is a runtime client for working with Google services.
This package includes auth components like user-credential, authorization code flow, etc. for making authenticated calls using the OAuth2 spec. 
                                                 | 
                                                27 | 
| 
                                                    Google.Apis.Auth
                                                     The Google APIs Client Library is a runtime client for working with Google services.
This package includes auth components like user-credential, authorization code flow, etc. for making authenticated calls using the OAuth2 spec. 
                                                 | 
                                                15 | 
.NET 8.0
- System.CodeDom (>= 10.0.0-rc.2.25502.107)
 
.NET 9.0
- System.CodeDom (>= 10.0.0-rc.2.25502.107)
 
.NET 10.0
- System.CodeDom (>= 10.0.0-rc.2.25502.107)
 
.NET Standard 2.0
- System.CodeDom (>= 10.0.0-rc.2.25502.107)