The Windows Management Instrumentation(WML) Query Language
objSWbemServices.InstancesOf("Win32_Service")
objSWbemServices.ExecQuery("SELECT * FROM Win32_Service")
objSWbemServices.ExecQuery("SELECT Name FROM Win32_Service")
objSWbemServices.ExecQuery("SELECT StartMode FROM Win32_Service")
objSWbemServices.ExecQuery _("SELECT StartMode FROM Win32_Service WHERE State=Running")
objSWbemServices.ExecQuery _("SELECT StartMode, State FROM Win32_Service WHERE State=Running")
objSWbemServices.ExecQuery _("SELECT * FROM Win32_Service WHERE Name=WinMgmt")
objSWbemServices.Get("Win32_Service.Name=WinMgmt")
WML Keywords
AND
ASSOCIATORS OF
CLASS
FROM
GROUP Clause
HAVING
IS
ISA
KEYSONLY
LIKE
NOT
NULL
OR
REFERENCES OF
SELECT
TRUE
WHERE
WITHIN
FALSE
WML Operators
= Equal to
< Less than
> Greater than
<= Less than or equal to
>= Greater than or equal to
!= or <> Not equal to
No comments:
Post a Comment