System.Management 10.0.9 (original) (raw)

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

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:

Additional 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 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.

NuGet packages (1.2K)

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. 525.4M
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. 89.9M
BenchmarkDotNet Powerful .NET library for benchmarking 69.7M
Volo.Abp.Core Package Description 43.2M
Microsoft.AppCenter This package contains the basic functionalities that all App Center services use to communicate with the backend. 37.6M

GitHub repositories (340)

Showing the top 20 popular GitHub repositories that depend on System.Management:

Repository Stars
PowerShell/PowerShell PowerShell for every system! 54.0K
NickeManarin/ScreenToGif 🎬 ScreenToGif allows you to record a selected area of your screen, edit and save it as a gif or video. 27.1K
BeyondDimension/SteamTools 🛠「Watt Toolkit」是一个开源跨平台的多功能 Steam 工具箱。 25.9K
dotnet/roslyn The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs. 20.5K
BCUninstaller/Bulk-Crap-Uninstaller Remove large amounts of unwanted applications quickly. 19.7K
rocksdanister/lively Free and open-source software that allows users to set animated desktop wallpapers and screensavers powered by WinUI 3. 19.0K
netchx/netch A simple proxy client 17.6K
duplicati/duplicati Store securely encrypted backups in the cloud! 14.7K
abpframework/abp Open-source web application framework for ASP.NET Core! Offers an opinionated architecture to build enterprise software solutions with best practices on top of the .NET. Provides the fundamental infrastructure, cross-cutting-concern implementations, startup templates, application modules, UI themes, tooling and documentation. 14.3K
srwi/EverythingToolbar Everything integration for the Windows taskbar. 14.2K
seerge/g-helper Lightweight Armoury Crate alternative for Asus laptops with nearly the same functionality. Works with ROG Zephyrus, Flow, TUF, Strix, Scar, ProArt, Vivobook, Zenbook, Expertbook, ROG Ally, and many more. 13.7K
dotnet/BenchmarkDotNet Powerful .NET library for benchmarking 11.4K
chocolatey/choco Chocolatey - the package manager for Windows 11.4K
memstechtips/Winhance Application designed to optimize, customize and enhance your Windows experience. 11.1K
mRemoteNG/mRemoteNG mRemoteNG is the next generation of mRemote, open source, tabbed, multi-protocol, remote connections manager. 10.9K
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!! 10.0K
quasar/Quasar Remote Administration Tool for Windows 9.9K
AutoDarkMode/Windows-Auto-Night-Mode Automatically switches between the dark and light theme of Windows 10 and Windows 11 9.5K
TechnitiumSoftware/DnsServer Technitium DNS Server 8.9K
LibreHardwareMonitor/LibreHardwareMonitor Libre Hardware Monitor is free software that can monitor the temperature sensors, fan speeds, voltages, load and clock speeds of your computer. 8.5K

Include prerelease

Include vulnerable

Include deprecated

Version Downloads Last Updated
11.0.0-preview.5.26302.115 1,021 6/9/2026
11.0.0-preview.4.26230.115 5,221 5/12/2026
11.0.0-preview.3.26207.106 5,146 4/14/2026
11.0.0-preview.2.26159.112 5,677 3/10/2026
11.0.0-preview.1.26104.118 7,399 2/10/2026
10.0.9 68,101 6/9/2026
10.0.8 409,006 5/12/2026
10.0.7 668,529 4/21/2026
10.0.6 189,586 4/14/2026
10.0.5 874,115 3/12/2026
10.0.4 74,733 3/10/2026
10.0.3 716,561 2/10/2026
10.0.2 1,583,746 1/13/2026
10.0.1 620,848 12/9/2025
9.0.17 4,159 6/9/2026
9.0.16 37,364 5/12/2026
9.0.15 104,994 4/14/2026
9.0.14 127,804 3/10/2026
9.0.13 69,816 2/10/2026
9.0.12 120,135 1/13/2026