I was directed here from
https://github.com/MicrosoftDocs/sysinternals/issues/312
I can define and display fields as
- SELECT Caption FROM Win32_DiskDrive
- SELECT DeviceID FROM Win32_DiskDrive
- SELECT Index FROM Win32_DiskDrive
- SELECT Size FROM Win32_DiskDrive
- SELECT Status FROM Win32_DiskDrive
but when I try to retrieve them in VBScript using the Field() function, then the first three work just fine, but I receive just an empty string from the last two. Is there a type conversion issue?
I find the same issue with
- SELECT MonitorType FROM Win32_DesktopMonitor
but not with
- SELECT MonitorName FROM Win32_DesktopMonitor
though, which are both strings...
Digging a bit more, I find that
- SELECT ScreenHeight FROM Win32_DesktopMonitor
is fine, but
- SELECT ScreenWidth FROM Win32_DesktopMonitor
is not. This is nuts!
This is on Windows 10 Pro 64-bit 10.0.18363 (1909) using BGInfo 4.28.