Could it be made more friendly?
Compare these.
Compare these.
Code:
v:\> wmic process where name='notepad.exe' get ProcessID
No Instance(s) Available.
v:\> wmiquery /L /a . "Select ProcessId from Win32_Process where Name='notepad.exe'"
Error (SYS): Incorrect function.