Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.5
10.0
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
Statistic
FMM
Blog
Executes a query.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
WMIQuery | 5.2 | ❌ No | ✅ Yes | ❌ No | ✅ Yes, on Windows | ❌ No |
Parameter | Description | Example |
---|---|---|
WMIQueryRef | The reference to the query. Create it with WMIQuery.New and destroy them with WMIQuery.Release. | $ref |
Query | The query to run. | "SELECT * FROM Win32_Processor" |
Returns OK or error.
Query network adapters:
MBS( "WMIQuery.Query"; $WMIQueryRef; "Select * from Win32_NetworkAdapter" )
Query details about operation system:
MBS( "WMIQuery.Query"; $WMIQueryRef; "Select * from Win32_OperatingSystem" )
Query event log:
MBS( "WMIQuery.Query"; $WMIQueryRef; "Select * from Win32_NTEventLogFile" )
Created 22nd June 2015, last changed 19th October 2017
WMIQuery.PropertyValue - WMIQuery.Release
Feedback: Report problem or ask question.