Project

General

Profile

$wmiquery » History » Version 8

Per Amundsen, 07/01/2015 05:08 AM

1 1 Per Amundsen
_Added in 1.9.7_
2
3 8 Per Amundsen
*$wmiquery([path], query, [N], key)*
4 1 Per Amundsen
5 7 Per Amundsen
Performs a "WMI":https://msdn.microsoft.com/en-us/library/aa394582%28v=vs.85%29.aspx query and return the N'th value.
6 1 Per Amundsen
7
*Parameters*
8
9 8 Per Amundsen
[path] - Optional path.
10 1 Per Amundsen
query - Query to perform.
11 7 Per Amundsen
[N] - If 0, numbers of results else the N'th value (optional, default is 1)
12 1 Per Amundsen
key - The key to get.
13
14
*Example*
15
16
<pre>
17 3 Per Amundsen
; Prints the cpu l2 cache
18 5 Per Amundsen
//echo -ag l2 cache is $wmiquery(SELECT * FROM Win32_Processor, L2CacheSize)
19 1 Per Amundsen
</pre>