What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

What is the syntax for "WMI Tester"

Votes:

0

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.

tools wmi wmi-tester

Created on Jan 12, 2017 11:21:28 PM

Last change on Jan 13, 2017 7:45:56 AM by  Sven Roggenhofer [Paessler Technical Support]



1 Reply

Votes:

0

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

Created on Jan 13, 2017 7:53:56 AM by  Sven Roggenhofer [Paessler Technical Support]




Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.