Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some of the WMI Queries don't work with the VBScript Field() function #312

Open
salvis opened this issue Sep 28, 2020 · 1 comment
Open

Comments

@salvis
Copy link

salvis commented Sep 28, 2020

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.

@foxmsft
Copy link
Collaborator

foxmsft commented Sep 29, 2020

Thanks for the comment, @salvis. Have you tried the TechNet forum? It's the recommended place for seeking support and reporting bugs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants