def get_system_info():
 os_type = {1: 'Work Station', 2: 'Domain Controller', 3: 'Server'}
 pythoncom.CoInitialize()
 conn = wmi.WMI()
 system = conn.Win32_OperatingSystem()[0]
 ret = {'name': get_computer_name(), 'description': system.Description, 'install_date': system.InstallDate, 'last_boot': system.LastBootUpTime, 'os_manufacturer': system.Manufacturer, 'os_name': system.Caption, 'users': system.NumberOfUsers, 'organization': system.Organization, 'os_architecture': system.OSArchitecture, 'primary': system.Primary, 'os_type': os_type[system.ProductType], 'registered_user': system.RegisteredUser, 'system_directory': system.SystemDirectory, 'system_drive': system.SystemDrive, 'os_version': system.Version, 'windows_directory': system.WindowsDirectory}
 system = conn.Win32_ComputerSystem()[0]
 ret.update({'hardware_manufacturer': system.Manufacturer, 'hardware_model': system.Model, 'processors': system.NumberOfProcessors, 'processors_logical': system.NumberOfLogicalProcessors, 'system_type': system.SystemType})
 system = conn.Win32_BIOS()[0]
 ret.update({'hardware_serial': system.SerialNumber, 'bios_manufacturer': system.Manufacturer, 'bios_version': system.Version, 'bios_details': system.BIOSVersion, 'bios_caption': system.Caption, 'bios_description': system.Description})
 ret['install_date'] = _convert_date_time_string(ret['install_date'])
 ret['last_boot'] = _convert_date_time_string(ret['last_boot'])
 return ret

def get_system_info ( ) : os_type = { 1 : 'Work Station' , 2 : 'Domain Controller' , 3 : 'Server' } pythoncom . CoInitialize ( ) conn = wmi . WMI ( ) system = conn . Win32_OperatingSystem ( ) [ 0 ] ret = { 'name' : get_computer_name ( ) , 'description' : system . Description , 'install_date' : system . InstallDate , 'last_boot' : system . LastBootUpTime , 'os_manufacturer' : system . Manufacturer , 'os_name' : system . Caption , 'users' : system . NumberOfUsers , 'organization' : system . Organization , 'os_architecture' : system . OSArchitecture , 'primary' : system . Primary , 'os_type' : os_type [ system . ProductType ] , 'registered_user' : system . RegisteredUser , 'system_directory' : system . SystemDirectory , 'system_drive' : system . SystemDrive , 'os_version' : system . Version , 'windows_directory' : system . WindowsDirectory } system = conn . Win32_ComputerSystem ( ) [ 0 ] ret . update ( { 'hardware_manufacturer' : system . Manufacturer , 'hardware_model' : system . Model , 'processors' : system . NumberOfProcessors , 'processors_logical' : system . NumberOfLogicalProcessors , 'system_type' : system . SystemType } ) system = conn . Win32_BIOS ( ) [ 0 ] ret . update ( { 'hardware_serial' : system . SerialNumber , 'bios_manufacturer' : system . Manufacturer , 'bios_version' : system . Version , 'bios_details' : system . BIOSVersion , 'bios_caption' : system . Caption , 'bios_description' : system . Description } ) ret [ 'install_date' ] = _convert_date_time_string ( ret [ 'install_date' ] ) ret [ 'last_boot' ] = _convert_date_time_string ( ret [ 'last_boot' ] ) return ret
get data from system_info table .