$wmiquery » History » Revision 9
Revision 8 (Per Amundsen, 07/01/2015 05:08 AM) → Revision 9/12 (Per Amundsen, 08/10/2015 08:54 AM)
_Added in 1.9.7_ *$wmiquery([path], query, [N], key)* Performs a "WMI":https://msdn.microsoft.com/en-us/library/aa394582%28v=vs.85%29.aspx query and return the Nth N'th value. *Parameters* [path] - Optional path. query - Query to perform. [N] - If 0, numbers of results else the Nth N'th value (optional, default is 1) key - The key to get. *Example* <pre> ; Prints the cpu l2 cache //echo -ag l2 cache is $wmiquery(SELECT * FROM Win32_Processor, L2CacheSize) </pre>