psexec + es.exe = error 8

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
Bedfford
Posts: 3
Joined: Mon Apr 25, 2022 6:13 pm

psexec + es.exe = error 8

Post by Bedfford »

Hi.

I'm looking a way to execute a console search on a remote machine, using ES.EXE and capture the stdout result.

Everything is installed and loaded at systray and the service is running on my 'myserver' machine (W7 SP1 x64).
Executing a search using ES.EXE directly on this machine:
D:\CMD\ES.EXE -no-result-error /a-d-h-l -r "mspaint.exe"
works fine.

But when I need to execute a search from another machine with psexec:
psexec \\myserver D:\CMD\ES.EXE -no-result-error /a-d-h-l -r "mspaint.exe"
I get: Error 8: Everything IPC window not found. Please make sure Everything is running.

Putting ES.EXE command inside a batch script:
@echo off
cd
echo this is a test script
D:\CMD\ES.EXE -no-result-error /a-d-h-l -r "mspaint.exe"

then running:
psexec \\myserver D:\CMD\TEST.BAT

I can get all normal stdout from TEST.BAT, but ES.EXE keep throwing the same error 8 message.

I tried to add -u user -p pass -h -s -i parameters to psexec, but ES.EXE keep failing.

I ran out of ideas. Any help or comment are most welcome.
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: psexec + es.exe = error 8

Post by NotNull »

Keywords: session (0/1) and different desktops isolation. Link
Bedfford
Posts: 3
Joined: Mon Apr 25, 2022 6:13 pm

Re: psexec + es.exe = error 8

Post by Bedfford »

NotNull wrote: Mon Apr 25, 2022 8:13 pm Keywords: session (0/1) and different desktops isolation. Link
Thanks for your reply. Do you mean the psexec -i argument?

with -i or -i 0 :
D:\CMD\ES.EXE exited on myserver with error code 8.
but no stdout from the remote ES.EXE to the local CMD window.

with -i 1 :
D:\CMD\ES.EXE exited on myserver with error code 0.
The remote operation of ES.EXE is success, but still no stdout of the search results.

Maybe the only way is redetecting the remote stdout (with -i 1) to a temporary txt file and looking a simple way to recovery this data.
void
Developer
Posts: 16773
Joined: Fri Oct 16, 2009 11:31 pm

Re: psexec + es.exe = error 8

Post by void »

To redirect output to a file with ES and psexec, please try the following call:

Code: Select all

psexec \\server -i 1 D:\CMD\ES.exe -no-result-error /a-d-h-l -r "mspaint.exe" -export-txt d:\cmd\outfile.txt
outfile.txt will be created on the remote machine.
Bedfford
Posts: 3
Joined: Mon Apr 25, 2022 6:13 pm

Re: psexec + es.exe = error 8

Post by Bedfford »

void wrote: Tue Apr 26, 2022 9:48 am To redirect output to a file with ES and psexec, please try the following call:

Code: Select all

psexec \\server -i 1 D:\CMD\ES.exe -no-result-error /a-d-h-l -r "mspaint.exe" -export-txt d:\cmd\outfile.txt
outfile.txt will be created on the remote machine.
Adding a second psexec (without -i) command into a script:

Code: Select all

psexec \\server -accepteula -nobanner -h -high CMD.EXE /C type d:\cmd\outfile.txt
do the trick and now I can capture the remote search result on the local machine. Many thanks.
Post Reply