Project

General

Profile

$wmiquery » History » Revision 11

Revision 10 (Per Amundsen, 07/07/2017 08:54 PM) → Revision 11/12 (Per Amundsen, 02/23/2023 07:57 PM)

_Added in 1.9.7_ 

 *$wmiquery([path], query, [N], N|key)* 

 Performs a "WMI":https://msdn.microsoft.com/en-us/library/aa394582%28v=vs.85%29.aspx query and return the Nth value. 

 *Parameters* 

 table(ktable). 
 |*Parameter*|*Description*| 
 | [path] | - Optional path. | 
 | query | - Query to perform. | 
 | [N] | - If 0, numbers of results else the Nth value (optional, default is 1) | 
 | N<notextile>|</notextile>key | N|key - The key to get or the Nth key. | 

 *Properties* 
 .key - Returns the name of the Nth key if N|key is a number. 

 table(ktable). 
 |*Property*|*Description*| 
 *Example* 

 <pre> 
 ; Prints the cpu l2 cache 
 //echo -ag l2 cache is $wmiquery(SELECT * FROM Win32_Processor, L2CacheSize) 
 </pre>