wmi:windows Management instrumentation, Windows Management Specifications .
Cim:common information Model, Generic Information Model .
wql:wmi Query Language ,Windows Management Specification Query Language words , is WMI the query language in .
Windows the self-brought WQL Test Tool : WBEMTest
#####################################
WQL The keywords :
SELECT: represents a property that needs to be queried , * represents all Properties .
From : The name of the class that needs to be queried .
WHERE: The conditional statement .
Having:
Like:
is:
and : joins a Boolean expression .
OR: joins a Boolean expression .
Not:
Null:
Associators
_class
Groupclause
Isa
Keysonly
Referencesof
Within
TRUE:
FALSE:
#####################################
from available classes: can be viewed through enum .
select* from Meta_class WHERE __class like "%win32%" # Find all Win32 the instance.
select* from Meta_class WHERE __class like "% CIM %" # query all CIM the instance.
Useful statements:
select* from Win32_LogicalDisk # view Logical Disk.
To view a file under a path:
select* from Cim_datafile WHERE drive= "C:" and Path= "\\path\\" and the FileName like "percent" # view all the files in a folder on C Drive.
The file name inside the percent is not suffixed.
#####################################
Windows:wmi&wql