System.Management
8.0.0
Prefix Reserved
See the version list below for details.
dotnet add package System.Management --version 8.0.0
NuGet\Install-Package System.Management -Version 8.0.0
<PackageReference Include="System.Management" Version="8.0.0" />
paket add System.Management --version 8.0.0
#r "nuget: System.Management, 8.0.0"
// Install System.Management as a Cake Addin #addin nuget:?package=System.Management&version=8.0.0 // Install System.Management as a Cake Tool #tool nuget:?package=System.Management&version=8.0.0
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.ManagementClass
System.Management.ManagementObject
System.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.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- System.CodeDom (>= 8.0.0)
-
net6.0
- System.CodeDom (>= 8.0.0)
-
net7.0
- System.CodeDom (>= 8.0.0)
-
net8.0
- System.CodeDom (>= 8.0.0)
NuGet packages (829)
Showing the top 5 NuGet packages that depend on System.Management:
Package | 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. |
|
Microsoft.Windows.Compatibility
This Windows Compatibility Pack provides access to APIs that were previously available only for .NET Framework. It can be used from both .NET as well as .NET Standard. |
|
DiffEngine
Launches diff tools based on file extensions. Designed to be consumed by snapshot testing libraries. |
|
BenchmarkDotNet
Powerful .NET library for benchmarking |
|
Microsoft.AppCenter
This package contains the basic functionalities that all App Center services use to communicate with the backend. |
GitHub repositories (233)
Showing the top 5 popular GitHub repositories that depend on System.Management:
Repository | Stars |
---|---|
microsoft/PowerToys
Windows system utilities to maximize productivity
|
|
PowerShell/PowerShell
PowerShell for every system!
|
|
BeyondDimension/SteamTools
🛠「Watt Toolkit」是一个开源跨平台的多功能 Steam 工具箱。
|
|
dotnet/roslyn
The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
|
|
netchx/netch
A simple proxy client
|