$wmiquery » History » Version 2
Per Amundsen, 07/01/2015 01:47 AM
| 1 | 1 | Per Amundsen | _Added in 1.9.7_ |
|---|---|---|---|
| 2 | |||
| 3 | *$wmiquery(query, N, key)* |
||
| 4 | |||
| 5 | Performs a "WMI":https://msdn.microsoft.com/en-us/library/aa394582%28v=vs.85%29.aspx query and return the N'th key. |
||
| 6 | |||
| 7 | *Parameters* |
||
| 8 | |||
| 9 | query - Query to perform. |
||
| 10 | N - The N'th match (optional, default is 1) |
||
| 11 | key - The key to get. |
||
| 12 | |||
| 13 | *Example* |
||
| 14 | |||
| 15 | <pre> |
||
| 16 | 2 | Per Amundsen | ; Returns the cpu l2 cache |
| 17 | 1 | Per Amundsen | //echo -ag l2 cache is $wmi(SELECT * FROM Win32_Processor, L2CacheSize) |
| 18 | </pre> |