Is it possible to enter a query in WMI Tester advanced tab to pull more than one piece of data?

For example

SELECT SerialNumber FROM Win32_SystemEnclosure
SELECT Model FROM Win32_SystemEnclosure

I've tried multiple ways, but always get "80041017: The query was not syntactically correct". But there is no indication what the correct syntax would be. Both of these lines work by themselves.


Article Comments

Dear seanperdew,

Thank you for your KB-post.

If you want to gather more than one property from the same WMI class, you have to coma separate them. So, please use the syntax as shown below:

SELECT SerialNumber, Model FROM Win32_SystemEnclosure

Best regards,
Sven


Jan, 2017 - Permalink