System.Management
10.0.0-preview.5.25280.105
.NET 8.0
This package targets .NET 8.0. The package is compatible with this framework or higher.
.NET Standard 2.0
This package targets .NET Standard 2.0. The package is compatible with this framework or higher.
.NET Framework 4.6.2
This package targets .NET Framework 4.6.2. The package is compatible with this framework or higher.
This is a prerelease version of System.Management.
There is a newer prerelease version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package System.Management --version 10.0.0-preview.5.25280.105
NuGet\Install-Package System.Management -Version 10.0.0-preview.5.25280.105
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="System.Management" Version="10.0.0-preview.5.25280.105" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="System.Management" Version="10.0.0-preview.5.25280.105" />
<PackageReference Include="System.Management" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add System.Management --version 10.0.0-preview.5.25280.105
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: System.Management, 10.0.0-preview.5.25280.105"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=System.Management&version=10.0.0-preview.5.25280.105&prerelease
#tool nuget:?package=System.Management&version=10.0.0-preview.5.25280.105&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 was computed. 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 was computed. 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. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- System.CodeDom (>= 10.0.0-preview.5.25280.105)
-
net10.0
- System.CodeDom (>= 10.0.0-preview.5.25280.105)
-
net8.0
- System.CodeDom (>= 10.0.0-preview.5.25280.105)
-
net9.0
- System.CodeDom (>= 10.0.0-preview.5.25280.105)
GitHub repositories (268)
Showing the top 20 popular GitHub repositories that depend on System.Management:
Repository | Stars |
---|---|
microsoft/PowerToys
Windows system utilities to maximize productivity
|
|
PowerShell/PowerShell
PowerShell for every system!
|
|
NickeManarin/ScreenToGif
🎬 ScreenToGif allows you to record a selected area of your screen, edit and save it as a gif or video.
|
|
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
|
|
rocksdanister/lively
Free and open-source software that allows users to set animated desktop wallpapers and screensavers powered by WinUI 3.
|
|
Klocman/Bulk-Crap-Uninstaller
Remove large amounts of unwanted applications quickly.
|
|
duplicati/duplicati
Store securely encrypted backups in the cloud!
|
|
srwi/EverythingToolbar
Everything integration for the Windows taskbar.
|
|
dotnet/BenchmarkDotNet
Powerful .NET library for benchmarking
|
|
chocolatey/choco
Chocolatey - the package manager for Windows
|
|
seerge/g-helper
Lightweight Armoury Crate alternative for Asus laptops and ROG Ally. Control tool for ROG Zephyrus G14, G15, G16, M16, Flow X13, Flow X16, TUF, Strix, Scar and other models
|
|
mRemoteNG/mRemoteNG
mRemoteNG is the next generation of mRemote, open source, tabbed, multi-protocol, remote connections manager.
|
|
unoplatform/uno
Open-source platform for building cross-platform native Mobile, Web, Desktop and Embedded apps quickly. Create rich, C#/XAML, single-codebase apps from any IDE. Hot Reload included! 90m+ NuGet Downloads!!
|
|
quasar/Quasar
Remote Administration Tool for Windows
|
|
AutoDarkMode/Windows-Auto-Night-Mode
Automatically switches between the dark and light theme of Windows 10 and Windows 11
|
|
microsoft/ailab
Experience, Learn and Code the latest breakthrough innovations with Microsoft AI
|
|
stride3d/stride
Stride (formerly Xenko), a free and open-source cross-platform C# game engine.
|
|
LibreHardwareMonitor/LibreHardwareMonitor
Libre Hardware Monitor is free software that can monitor the temperature sensors, fan speeds, voltages, load and clock speeds of your computer.
|
Version | Downloads | Last Updated |
---|---|---|
10.0.0-preview.6.25321.102 | 0 | 6/25/2025 |
10.0.0-preview.5.25280.105 | 0 | 6/2/2025 |
10.0.0-preview.5.25277.114 | 0 | 6/3/2025 |
10.0.0-preview.5.25277.101 | 0 | 5/29/2025 |
10.0.0-preview.5.25266.103 | 0 | 5/20/2025 |
10.0.0-preview.4.25255.103 | 0 | 5/12/2025 |
4.6.0-preview.19073.11 | 2 | 1/28/2019 |
4.6.0-preview.18571.3 | 2 | 11/30/2018 |