API Reference
Class
OsInfo
Detailed operating system properties commonly used in inventory and troubleshooting (build, install/boot times, product type, etc.).
Inheritance
- Object
- OsInfo
Constructors
public OsInfo() #Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
Properties
public String Caption { get; set; } #Display(Name = "OS", Order = 0)Friendly product caption, for example "Microsoft Windows Server 2022 Datacenter".
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.