public sealed class WindowsSystemInformationClient Local machine information through Windows APIs and read-only registry access.
Constructors
WindowsSystemInformationClient
public WindowsSystemInformationClient() No documentation.
Methods
GetActiveConsoleUser
public ConsoleUser? GetActiveConsoleUser() Reads the user signed in at the physical console (WTSGetActiveConsoleSessionId, WTSQuerySessionInformationW); null when no session is attached to the console or nobody is signed in.
Remarks
Works from a service or a task running as SYSTEM, which have no interactive user of their own. A user signed in only through Remote Desktop is not the console user.
GetBiosInformation
public ImmutableArray<WindowsBiosInfo> GetBiosInformation() Reads BIOS structures from the firmware's SMBIOS table.
GetOperatingSystem
public WindowsOperatingSystemInfo GetOperatingSystem() Reads the actual native OS version and installed product metadata.
GetOperatingSystemNameAsync
public Task<string> GetOperatingSystemNameAsync(CancellationToken cancellationToken = default) Reads the OS display name from Windows inventory. Unlike the compatibility registry label, this distinguishes Windows 11.