
5.14.2003
System.Management (WMI) in .NET
Using WMI in .NET to get system information.
From my quick reading of using WMI from .NET, it looks like everything you use SQL sort of syntax on a set of "objects". The objects (Win32 classes) are here. For example, look at Operating System, File System, Win32_LogicalDisk.
select FreeSpace, Size, Name from Win32_LogicalDisk where DriveType=3"
Also Operating System, Operating System Settings, Win32_OperatingSystem
Unfortunately, these WMI related queries only work on Windows ME and higher by default, unless you install the WMI package separately on Win9x machines.
From my quick reading of using WMI from .NET, it looks like everything you use SQL sort of syntax on a set of "objects". The objects (Win32 classes) are here. For example, look at Operating System, File System, Win32_LogicalDisk.
select FreeSpace, Size, Name from Win32_LogicalDisk where DriveType=3"
Also Operating System, Operating System Settings, Win32_OperatingSystem
Unfortunately, these WMI related queries only work on Windows ME and higher by default, unless you install the WMI package separately on Win9x machines.