Table of Contents

Class WindowsOperatingSystem

Namespace
CENTREL.XIA.Configuration.Types
Assembly
CENTREL.XIA.Configuration.Types.dll

Represents the configuration of the Windows operating system.

public class WindowsOperatingSystem : BaseTypeSection
Inheritance
WindowsOperatingSystem

Constructors

WindowsOperatingSystem()

Initializes a new instance of the CENTREL.XIA.Configuration.Types.WindowsOperatingSystem class.

public WindowsOperatingSystem()

Properties

BackupProducts

Gets or sets the backup products installed on the Windows machine.

public WindowsBackupProducts BackupProducts { get; set; }

Property Value

WindowsBackupProducts

BuildNumber

Gets or sets the build number of the operating system - for example "7601".

public string BuildNumber { get; set; }

Property Value

string

BuildType

Gets or sets the build type of the operating system - for example "Multiprocessor Free".

public string BuildType { get; set; }

Property Value

string

Caption

Gets or sets the display name of the operating system - for example "Microsoft Windows 7 Enterprise".

public string Caption { get; set; }

Property Value

string

CodeSet

Gets or sets the code page of the operating system - for example "1255". A code page contains a character table that an operating system uses to translate strings for different languages.

public string CodeSet { get; set; }

Property Value

string

CountryCode

Gets or sets the country code of the operating system - for example "44" for United Kingdom.

public string CountryCode { get; set; }

Property Value

string

DiskQuotas

Gets or sets the disk quotas configured on this Windows machine.

public WindowsDiskQuotaSettings DiskQuotas { get; set; }

Property Value

WindowsDiskQuotaSettings

DnsHostname

Gets or sets the DNS hostname of this machine.

public string DnsHostname { get; set; }

Property Value

string

DomainName

Gets or sets the name of the domain or workgroup that this machine is currently a member of.

public string DomainName { get; set; }

Property Value

string

DomainOrWorkgroup

Gets whether this machine is in a domain or workgroup.

public DomainOrWorkgroup DomainOrWorkgroup { get; set; }

Property Value

DomainOrWorkgroup

DomainRole

Gets or sets the role that this machine plays within the domain.

public DomainRole DomainRole { get; set; }

Property Value

DomainRole

DomainRoleString

Gets the role that this machine plays within the domain in a human readable format.

public string DomainRoleString { get; set; }

Property Value

string

EnvironmentVariables

Gets or sets the environment variables configured on this Windows machine.

public EnvironmentVariables EnvironmentVariables { get; set; }

Property Value

EnvironmentVariables

FailoverClustering

Gets or sets the failover clustering configuration.

public WindowsFailoverClusteringConfiguration FailoverClustering { get; set; }

Property Value

WindowsFailoverClusteringConfiguration

FreePhysicalMemory

Gets or sets the amount of physical memory currently unused and available in kilobytes.

public ulong FreePhysicalMemory { get; set; }

Property Value

ulong

FullyQualifiedDomainName

Gets or sets the fully qualified domain name(FQDN) of this machine.

public string FullyQualifiedDomainName { get; set; }

Property Value

string

HostsFile

Gets or sets the hosts file for the machine.

public WindowsFileInformation HostsFile { get; set; }

Property Value

WindowsFileInformation

InstallDate

Gets or sets the date on which the operating system was installed.

public DateTime InstallDate { get; set; }

Property Value

DateTime

InternetSettings

Gets or sets information about Internet Explorer and other internet related settings on this Windows machine.

public InternetSettings InternetSettings { get; set; }

Property Value

InternetSettings

IsBareMetalHypervisor

Gets whether the system is a bare metal Hyper-V hypervisor.

public BooleanOption IsBareMetalHypervisor { get; set; }

Property Value

BooleanOption

IsDomainController

Gets whether this machine is a domain controller.

public BooleanOption IsDomainController { get; set; }

Property Value

BooleanOption

IsDomainMember

Gets whether this machine is a domain member either as a domain controller or member server.

public BooleanOption IsDomainMember { get; set; }

Property Value

BooleanOption

IsMinimalServer

Gets or sets whether the machine is running a minimal server graphical interface on Windows Server 2012.

public BooleanOption IsMinimalServer { get; set; }

Property Value

BooleanOption

IsNanoServer

Gets or sets whether the machine is running a nano server installation.

public BooleanOption IsNanoServer { get; set; }

Property Value

BooleanOption

IsServer

Gets whether this machine is a server machine.

public BooleanOption IsServer { get; set; }

Property Value

BooleanOption

IsServerCore

Gets or sets whether the machine is running a server core operating system. This returns true on Windows Server 2012 systems even if the "Graphical Management Tools and Infrastructure" feature is installed.

public BooleanOption IsServerCore { get; set; }

Property Value

BooleanOption

IsServerInstallationTypeAvailable

Gets whether the server installation type is available for this machine.

public bool IsServerInstallationTypeAvailable { get; }

Property Value

bool

LastBootUpTime

Gets or sets the date and time at which the machine last booted up.

public DateTime LastBootUpTime { get; set; }

Property Value

DateTime

License

Gets or sets operating system license information.

public WindowsOperatingSystemLicense License { get; set; }

Property Value

WindowsOperatingSystemLicense

Locale

Gets or sets the language identifier used by the operating system - for example "1c09".

public string Locale { get; set; }

Property Value

string

MuiLanguages

Gets or sets the Languages that are available to the user interface (applies to newer operating systems that are installed using the English version of the operating system).

public SerializableStringCollection MuiLanguages { get; set; }

Property Value

SerializableStringCollection

NetBiosName

Gets or sets the machine's NetBIOS name.

public string NetBiosName { get; set; }

Property Value

string

NetFramework

Gets or sets the .NET Framework setup on this machine.

public NetFrameworkSetup NetFramework { get; set; }

Property Value

NetFrameworkSetup

NetworkLoadBalancing

Gets or sets the network load balancing (NLB) configuration for this machine. This applies to Windows server 2003 and above only.

public WindowsNlbConfiguration NetworkLoadBalancing { get; set; }

Property Value

WindowsNlbConfiguration

OSLanguage

Gets or sets the language version of the operating system installed - for example "1033".

public uint OSLanguage { get; set; }

Property Value

uint

Odbc

Gets or sets the ODBC configuration of this Windows machine.

public OdbcConfiguration Odbc { get; set; }

Property Value

OdbcConfiguration

OperatingSystemArchitecture

Gets or sets the operating system architecture type - i.e. 32-bit or 64-bit.

public OperatingSystemArchitectureType OperatingSystemArchitecture { get; set; }

Property Value

OperatingSystemArchitectureType

OperatingSystemArchitectureString

Returns the operating system architecture type in a human readable format.

public string OperatingSystemArchitectureString { get; set; }

Property Value

string

OptionalFeatures

Gets or sets information about the optional features installed for this machine. This only applies to desktop operating systems.

public WindowsOptionalFeatures OptionalFeatures { get; set; }

Property Value

WindowsOptionalFeatures

PageFiles

Gets or sets the configuration of the page files configured on this Windows machine.

public WindowsPageFiles PageFiles { get; set; }

Property Value

WindowsPageFiles

PowerShell

Gets or sets the PowerShell settings for this machine.

public WindowsPowerShellSettings PowerShell { get; set; }

Property Value

WindowsPowerShellSettings

RegistryCurrentSize

Gets or sets the current size of the registry at the time of the scan in megabytes.

public int RegistryCurrentSize { get; set; }

Property Value

int

RegistryMaximumSize

Gets or sets the maximum size of the registry in megabytes.

public int RegistryMaximumSize { get; set; }

Property Value

int

ReleaseName

Gets the display name of the version - for example "October 2020 Update (20H2)". This only applies to Windows 10 and above.

public string ReleaseName { get; set; }

Property Value

string

RemoteAssistance

Gets or sets the Remote Assistance settings configured on this machine.

public WindowsRemoteAssistanceSettings RemoteAssistance { get; set; }

Property Value

WindowsRemoteAssistanceSettings

RemoteDesktop

Gets or sets the Remote Desktop Settings configured on this machine.

public WindowsRemoteDesktopSettings RemoteDesktop { get; set; }

Property Value

WindowsRemoteDesktopSettings

Security

Gets or sets the security settings on this Windows machine.

public WindowsSecurity Security { get; set; }

Property Value

WindowsSecurity

SerialNumber

Gets or sets the operating system serial number - in the format "xxxxx-xxx-xxxxxxx-xxxxx".

public string SerialNumber { get; set; }

Property Value

string

ServerFeatures

Gets or sets the server features such as "DHCP Server" installed on this Windows machine. This applies to Windows Server 2008 and above.

public WindowsServerFeatures ServerFeatures { get; set; }

Property Value

WindowsServerFeatures

ServerInstallationType

Gets or sets the server installation type. This setting only applies to Windows Server 2012 and above.

public WindowsServerInstallationType ServerInstallationType { get; set; }

Property Value

WindowsServerInstallationType

ServerInstallationTypeString

Gets the server installation type as a human readable string. This setting only applies to Windows Server 2012 and above.

public string ServerInstallationTypeString { get; set; }

Property Value

string

ServicePackVersion

Gets or sets a human readable description of the currently installed service pack - for example "Service Pack 1".

public string ServicePackVersion { get; set; }

Property Value

string

Sku

Gets or sets the stock keeping unit (SKU) for this operating system. This is available on Windows 2008 and above.

public WindowsOperatingSystemSku Sku { get; set; }

Property Value

WindowsOperatingSystemSku

StartupCommands

Gets or sets the startup commands configured on this Windows machine.

public WindowsStartupCommands StartupCommands { get; set; }

Property Value

WindowsStartupCommands

SystemDirectory

Gets or sets the absolute path to the system directory - for example "C:\windows\system32".

public string SystemDirectory { get; set; }

Property Value

string

TimeZoneBias

Gets or sets the bias of the timezone from GMT - for example Cairo would be "120" = GMT + 2 hours.

public int TimeZoneBias { get; set; }

Property Value

int

TimeZoneDaylightInEffect

Gets or sets whether the operating system is currently in "DayLight Savings Time". This is not available in Windows NT.

public BooleanOption TimeZoneDaylightInEffect { get; set; }

Property Value

BooleanOption

TimeZoneName

Gets or sets the human readable format of the timezone - for example "(UTC+02:00) Harare, Pretoria".

public string TimeZoneName { get; set; }

Property Value

string

Version

Gets or sets the version number of the operating system - for example "4.0".

public string Version { get; set; }

Property Value

string

WinRM

Gets or sets the Windows Remote Management settings (WinRM) on the machine.

public WindowsRemoteManagementSettings WinRM { get; set; }

Property Value

WindowsRemoteManagementSettings

WindowsDirectory

Gets or sets the absolute path to the Windows directory - for example "C:\windows".

public string WindowsDirectory { get; set; }

Property Value

string

WindowsTime

Gets or sets the Windows Time (W32Time) configuration.

public WindowsTimeSettings WindowsTime { get; set; }

Property Value

WindowsTimeSettings

WindowsUpdate

Gets or sets the Windows update configuration.

public WindowsUpdateConfiguration WindowsUpdate { get; set; }

Property Value

WindowsUpdateConfiguration

WindowsVersion

Gets the operating system version in a comparable format.

public WindowsOperatingSystemVersion WindowsVersion { get; }

Property Value

WindowsOperatingSystemVersion

Methods

FromXml(string)

Returns a CENTREL.XIA.Configuration.Types.WindowsOperatingSystem class from the specified XML.

public static WindowsOperatingSystem FromXml(string xml)

Parameters

xml string

The XML representation of the object.

Returns

WindowsOperatingSystem

A CENTREL.XIA.Configuration.Types.WindowsOperatingSystem class.

ToString()

Returns the name of the operating system - for example "Microsoft Windows 7 Enterprise" or "Windows Operating System" if the name is not available.

public override string ToString()

Returns

string

The Windows operating system as a human readable string.