TestimoX

API Reference

Class

OsInfo

Namespace ComputerX.OperatingSystem
Assembly ComputerX
Modifiers sealed

Detailed operating system properties commonly used in inventory and troubleshooting (build, install/boot times, product type, etc.).

Inheritance

  • Object
  • OsInfo

Constructors

public OsInfo() #

Properties

public String Caption { get; set; } #
Display(Name = "OS", Order = 0)

Friendly product caption, for example "Microsoft Windows Server 2022 Datacenter".

public String Version { get; set; } #
Display(Order = 1)

Version string such as "10.0.22631".

public String BuildNumber { get; set; } #
Display(Name = "Build", Order = 2)

Windows build number (if available).

public String Architecture { get; set; } #
Display(Name = "Arch", Order = 3)

Processor architecture of the OS (x86/x64/Arm64).

public Nullable<OsProductType> ProductType { get; set; } #

Windows product role (Workstation/Server/DC) mapped from WMI.

public String InstallationType { get; set; } #
Display(Name = "Install Type", Order = 4)

Installation type reported by WMI (e.g., Server Core, Nano Server).

public Nullable<DateTime> InstallDate { get; set; } #
Display(Name = "Installed", Order = 5)

Approximate operating system installation date.

public Nullable<DateTime> LastBootUpTime { get; set; } #
Display(Name = "Last Boot", Order = 6)

Last system boot time.