- May
- 13,210
- 180
This remote query works.
This one doesn't.
Should I expect @WMI to work for remote queries?
Code:
v:\> wmiquery \\lucky\root\CIMV2 "SELECT CommandLine FROM Win32_Process WHERE ProcessId = 4048"
"D:\TC16\tcc.exe"
This one doesn't.
Code:
v:\> echo %@wmi[\\lucky\root\CIMV2,"SELECT CommandLine FROM Win32_Process WHERE ProcessId = 4048"]
Error (SYS): Invalid parameter
Should I expect @WMI to work for remote queries?