System.Management 8.0.0

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
There is a newer prerelease version of this package available.
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
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="8.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add System.Management --version 8.0.0
#r "nuget: System.Management, 8.0.0"
#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.
// 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

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (731)

Showing the top 5 NuGet packages that depend on System.Management:

Package Downloads
Google.Apis.Auth The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

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 The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

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.

Microsoft.AppCenter The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

This package contains the basic functionalities that all App Center services use to communicate with the backend.

BenchmarkDotNet The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

Powerful .NET library for benchmarking

GitHub repositories (184)

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!
Ryujinx/Ryujinx
Experimental Nintendo Switch Emulator written in C#
dotnet/roslyn
The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
BeyondDimension/SteamTools
🛠「Watt Toolkit」是一个开源跨平台的多功能 Steam 工具箱。
Version Downloads Last updated
9.0.0-preview.2.24128.5 433 3/12/2024
9.0.0-preview.1.24080.9 3,974 2/13/2024
8.0.0 1,474,778 11/14/2023
8.0.0-rc.2.23479.6 18,614 10/10/2023
8.0.0-rc.1.23419.4 42,216 9/12/2023
8.0.0-preview.7.23375.6 36,451 8/8/2023
8.0.0-preview.6.23329.7 6,387 7/11/2023
8.0.0-preview.5.23280.8 6,118 6/13/2023
8.0.0-preview.4.23259.5 15,937 5/16/2023
8.0.0-preview.3.23174.8 29,437 4/11/2023
8.0.0-preview.2.23128.3 25,067 3/14/2023
8.0.0-preview.1.23110.8 9,614 2/21/2023
7.0.2 5,508,767 6/13/2023
7.0.1 1,146,082 4/11/2023
7.0.0 3,872,489 11/7/2022
7.0.0-rc.2.22472.3 56,739 10/11/2022
7.0.0-rc.1.22426.10 65,901 9/14/2022
7.0.0-preview.7.22375.6 13,721 8/9/2022
7.0.0-preview.6.22324.4 2,006 7/12/2022
7.0.0-preview.5.22301.12 2,605 6/14/2022
7.0.0-preview.4.22229.4 20,216 5/10/2022
7.0.0-preview.3.22175.4 4,948 4/13/2022
7.0.0-preview.2.22152.2 18,291 3/14/2022
7.0.0-preview.1.22076.8 10,851 2/17/2022
6.0.2 2,378,257 6/13/2023
6.0.2-mauipre.1.22102.15 1,596 2/15/2022
6.0.2-mauipre.1.22054.8 7,177 1/19/2022
6.0.1 4,843,310 4/11/2023
6.0.0 23,462,978 11/8/2021
6.0.0-rc.2.21480.5 13,725 10/12/2021
6.0.0-rc.1.21451.13 25,410 9/14/2021
6.0.0-preview.7.21377.19 6,852 8/10/2021
6.0.0-preview.6.21352.12 14,241 7/14/2021
6.0.0-preview.5.21301.5 7,657 6/15/2021
6.0.0-preview.4.21253.7 20,372 5/24/2021
6.0.0-preview.3.21201.4 49,790 4/8/2021
6.0.0-preview.2.21154.6 8,835 3/11/2021
6.0.0-preview.1.21102.12 15,237 2/12/2021
5.0.0 42,869,216 11/9/2020
5.0.0-rc.2.20475.5 13,359 10/13/2020
5.0.0-rc.1.20451.14 6,336 9/14/2020
5.0.0-preview.8.20407.11 14,241 8/25/2020
5.0.0-preview.7.20364.11 34,560 7/21/2020
5.0.0-preview.6.20305.6 8,483 6/25/2020
5.0.0-preview.5.20278.1 4,700 6/10/2020
5.0.0-preview.4.20251.6 8,697 5/18/2020
5.0.0-preview.3.20214.6 23,942 4/23/2020
5.0.0-preview.2.20160.6 23,131 4/2/2020
5.0.0-preview.1.20120.5 8,837 3/16/2020
4.7.0 27,720,009 12/3/2019
4.7.0-preview3.19551.4 13,947 11/13/2019
4.7.0-preview2.19523.17 13,769 11/1/2019
4.7.0-preview1.19504.10 10,175 10/15/2019
4.6.0 8,656,901 9/23/2019
4.6.0-rc1.19456.4 56,729 9/16/2019
4.6.0-preview9.19421.4 4,831 9/4/2019
4.6.0-preview9.19416.11 492 9/4/2019
4.6.0-preview8.19405.3 26,244 8/13/2019
4.6.0-preview7.19362.9 43,111 7/23/2019
4.6.0-preview6.19303.8 83,545 6/12/2019
4.6.0-preview6.19264.9 490 9/4/2019
4.6.0-preview5.19224.8 73,190 5/6/2019
4.6.0-preview4.19212.13 2,177 4/18/2019
4.6.0-preview3.19128.7 36,568 3/6/2019
4.6.0-preview.19073.11 15,726 1/29/2019
4.6.0-preview.18571.3 13,822 12/3/2018
4.5.0 29,991,409 5/29/2018
4.5.0-rc1 42,756 5/6/2018
4.5.0-preview2-26406-04 21,135 4/10/2018
4.5.0-preview1-26216-02 46,322 2/26/2018
4.5.0-preview1-25914-04 331,336 11/15/2017