Do rozwiązań ze sprzętem można też wykorzstać VBScript połączony z technolgią WMI i osadzić to bez problemu w kodzie xhtml. Zapytania są podobne do standardów SQL. Oczywiście głównym ograniczeniem jest fakt iż jest to technologia wyłącznie Microsoftu.
Przykładowe zapytanie dotyczące informacji o procesorze:
Kod
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_Processor")
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_Processor")
jest ono kompatybilne z użyciem w wierszu poleceń komendy: wmic np.
Kod
wmic:root\cli>cpu
AddressWidth Architecture Availability Caption ConfigManagerErrorCode ConfigManagerUserConfig CpuStatus CreationClassName CurrentClockSpeed CurrentVoltage DataWidth Description DeviceID ErrorCleared ErrorDescription ExtClock Family InstallDate L2CacheSize L2CacheSpeed L3CacheSize L3CacheSpeed LastErrorCode Level LoadPercentage Manufacturer MaxClockSpeed Name NumberOfCores NumberOfLogicalProcessors OtherFamilyDescription PNPDeviceID PowerManagementCapabilities PowerManagementSupported ProcessorId ProcessorType Revision Role SocketDesignation Status StatusInfo Stepping SystemCreationClassName SystemName UniqueId UpgradeMethod Version VoltageCaps
32 0 3 x86 Family 6 Model 14 Stepping 8 1 Win32_Processor 1067 33 32 x86 Family 6 Model 14 Stepping 8 CPU0 133 1 2048 0 0 6 GenuineIntel 1733 Genuine IntelŽ CPU T2250 @ 1.73GHz 2 2 FALSE BFE9FBFF000006E8 3 3592 CPU U2E1 OK 3 8 Win32_ComputerSystem LUKI-PC 4 Model 14, Stepping 8 2
wmic:root\cli>cpu
AddressWidth Architecture Availability Caption ConfigManagerErrorCode ConfigManagerUserConfig CpuStatus CreationClassName CurrentClockSpeed CurrentVoltage DataWidth Description DeviceID ErrorCleared ErrorDescription ExtClock Family InstallDate L2CacheSize L2CacheSpeed L3CacheSize L3CacheSpeed LastErrorCode Level LoadPercentage Manufacturer MaxClockSpeed Name NumberOfCores NumberOfLogicalProcessors OtherFamilyDescription PNPDeviceID PowerManagementCapabilities PowerManagementSupported ProcessorId ProcessorType Revision Role SocketDesignation Status StatusInfo Stepping SystemCreationClassName SystemName UniqueId UpgradeMethod Version VoltageCaps
32 0 3 x86 Family 6 Model 14 Stepping 8 1 Win32_Processor 1067 33 32 x86 Family 6 Model 14 Stepping 8 CPU0 133 1 2048 0 0 6 GenuineIntel 1733 Genuine IntelŽ CPU T2250 @ 1.73GHz 2 2 FALSE BFE9FBFF000006E8 3 3592 CPU U2E1 OK 3 8 Win32_ComputerSystem LUKI-PC 4 Model 14, Stepping 8 2