PAExec won't execute query.exe, while psexec has not trouble
I have no idea if this relates to any more executables aside from this one, but it has got me flustered. I am attempting to query the session ids and states on a remote pc via "paexec \\\\RemotePC query session". This works fine with psexec. When I attempt with paexec, I get the following:
Connecting to RemotePC...
Starting PAExec service on RemotePC...
Remote app failed to start. Returned error:
Failed to start "query" session. The system cannot find the file specified. [E
rr=0x2, 2]
PAExec returning exit code -9
I thought maybe it was a path problem, so I tried specifying the full path "c:\windows\system32\query.exe", "c:\\windows\\system32\\query.exe", using -w "c:\windows\system32\", "c:\\windows\\system32\\", and both. I wrote a batch script that called the executable with the same results (the batch file did run however). At a loss, I tried running it interactively on all known sessions on the remote machine (-i X), specifying different users from admins to guest and still no go. I triple checked that the executable was there. Any advice would be appreciated