Skip to content

WindowsDeviceInfo

Inherits: DeviceInfo

Properties

  • build_lab(str) –

    Value of HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\BuildLab

  • build_lab_ex(str) –

    Value of HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\BuildLabEx

  • build_number(int) –

    The build number of the operating system.

  • computer_name(str) –

    The computer's fully-qualified DNS name, where available.

  • csd_version(str) –

    The service-pack version string.

  • device_id(str) –

    Displayed as "Device ID" in Windows Settings.

  • display_version(str) –

    Value of HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DisplayVersion

  • edition_id(str) –

    Value of HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\EditionID

  • install_date(datetime) –

    Value of HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\InstallDate

  • major_version(int) –

    The major version number of the operating system.

  • minor_version(int) –

    The minor version number of the operating system.

  • number_of_cores(int) –

    Number of CPU cores on the local machine.

  • platform_id(int) –

    The operating system platform.

  • product_id(str) –

    Displayed as "Product ID" in Windows Settings.

  • product_name(str) –

    Value of HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProductName

  • product_type(int) –

    The product type.

  • registered_owner(str) –

    Value of the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\RegisteredOwner

  • release_id(str) –

    Value of the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ReleaseId

  • reserved(int) –

    Reserved for future use.

  • service_pack_major(int) –

    The major version number of the latest service pack installed on the system.

  • service_pack_minor(int) –

    The minor version number of the latest service pack installed on the system.

  • suit_mask(int) –

    The product suites available on the system.

  • system_memory(int) –

    The physically installed memory in the computer, in megabytes.

  • user_name(str) –

Properties#

build_lab instance-attribute #

build_lab: str

Value of HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\BuildLab registry key.

For example: "22000.co_release.210604-1628".

build_lab_ex instance-attribute #

build_lab_ex: str

Value of HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\BuildLabEx registry key.

For example: "22000.1.amd64fre.co_release.210604-1628".

build_number instance-attribute #

build_number: int

The build number of the operating system.

Examples:

  • 22000 or greater for Windows 11.
  • 10240 or greater for Windows 10.

computer_name instance-attribute #

computer_name: str

The computer's fully-qualified DNS name, where available.

csd_version instance-attribute #

csd_version: str

The service-pack version string.

This member contains a string, such as "Service Pack 3", which indicates the latest service pack installed on the system.

device_id instance-attribute #

device_id: str

Displayed as "Device ID" in Windows Settings.

Value of HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SQMClient\MachineId registry key.

display_version instance-attribute #

display_version: str

Value of HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DisplayVersion registry key.

For example: "21H2".

edition_id instance-attribute #

edition_id: str

Value of HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\EditionID registry key.

install_date instance-attribute #

install_date: datetime

Value of HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\InstallDate registry key.

major_version instance-attribute #

major_version: int

The major version number of the operating system.

For example, for Windows 2000, the major version number is 5.

For more info, see the table in Remarks: https://docs.microsoft.com/en-us/windows-hardware/drivers/ddi/wdm/ns-wdm-_osversioninfoexw#remarks

minor_version instance-attribute #

minor_version: int

The minor version number of the operating system.

For example, for Windows 2000, the minor version number is 0.

For more info, see the table in Remarks: https://docs.microsoft.com/en-us/windows-hardware/drivers/ddi/wdm/ns-wdm-_osversioninfoexw#remarks

number_of_cores instance-attribute #

number_of_cores: int

Number of CPU cores on the local machine.

platform_id instance-attribute #

platform_id: int

The operating system platform.

For Win32 on NT-based operating systems, RtlGetVersion returns the value VER_PLATFORM_WIN32_NT.

product_id instance-attribute #

product_id: str

Displayed as "Product ID" in Windows Settings.

Value of the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProductId registry key.

For example: "00000-00000-0000-AAAAA".

product_name instance-attribute #

product_name: str

Value of HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProductName registry key.

For example: "Windows 10 Home Single Language".

product_type instance-attribute #

product_type: int

The product type.

This member contains additional information about the system.

registered_owner instance-attribute #

registered_owner: str

Value of the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\RegisteredOwner registry key.

For example: "Microsoft Corporation".

release_id instance-attribute #

release_id: str

Value of the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ReleaseId registry key.

For example: "1903".

reserved instance-attribute #

reserved: int

Reserved for future use.

service_pack_major instance-attribute #

service_pack_major: int

The major version number of the latest service pack installed on the system.

For example, for Service Pack 3, the major version number is three. If no service pack has been installed, the value is zero.

service_pack_minor instance-attribute #

service_pack_minor: int

The minor version number of the latest service pack installed on the system.

For example, for Service Pack 3, the minor version number is zero.

suit_mask instance-attribute #

suit_mask: int

The product suites available on the system.

system_memory instance-attribute #

system_memory: int

The physically installed memory in the computer, in megabytes.

This may not be the same as available memory.

user_name instance-attribute #

user_name: str