Re: How to pass WMI query values
%C1%, %C2%, etc. will be great for more complex queries. Thanks for the info!
Announcement
Collapse
No announcement yet.
How to pass WMI query values
Collapse
X
-
Re: How to pass WMI query values
Looks like the correct syntax is %E%. Cool!
Thanks
Leave a comment:
-
Guest repliedRe: How to pass WMI query values
If you're using a Custom Tool to grab the data after running your WMI query, you use the column the data is in:
%C1%,%C2%, etc.
Leave a comment:
-
Re: How to pass WMI query values
I am unable to pass the query result using the %QueryResultFieldName% syntax. I was thinking I could use the field name of the query result between % symbols, like when using %hostname% to remote desktop a computer. This obviously does not work.
What is the correct syntax?
Thanks
Leave a comment:
-
Guest repliedRe: How to pass WMI query values
One approach would be to run your WMI query first, then pass the column(s) you need to
your Custom tool. The Tool syntax allows you to specify the column(s) you want the data from.
If you need something that would run in one step, you'd have to try using a Microsoft scripting tool (probably from the Microsoft
scripting center) for WMI access and write your own tool to do everything. You can use Hyena as a testing tool to find the class and property name, then try to recreate the WMI query using the Microsoft tool.
Leave a comment:
-
How to pass WMI query values
I am trying to set up some custom tools and need to pass the results of a simple WMI query (a single string is returned). Is there a way to assign a name to a WMI query that is usable by the "Tools" interface? Is there another way?
ThanksTags: None
Leave a comment: