I'm trying to do the following query in WMI:
SELECT ProcessID from Win32_Process where CommandLine='C:Windowssystem32calc.exe'
But I got an "Invalid query" error. I also tried with:
SELECT ProcessID from Win32_Process where CommandLine='C:\Windows\system32\calc.exe'
And still get the same error, also I tried to change the single quotes to double quotes but it didn't work.
Does anybody know if its possible to do that query?
See Question&Answers more detail:os