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.
psexec + es.exe = error 8
Re: psexec + es.exe = error 8
Keywords: session (0/1) and different desktops isolation. Link
Re: psexec + es.exe = error 8
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.
Re: psexec + es.exe = error 8
To redirect output to a file with ES and psexec, please try the following call:
outfile.txt will be created on the remote machine.
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
Re: psexec + es.exe = error 8
Adding a second psexec (without -i) command into a script:void wrote: ↑Tue Apr 26, 2022 9:48 am To redirect output to a file with ES and psexec, please try the following call:
outfile.txt will be created on the remote machine.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
Code: Select all
psexec \\server -accepteula -nobanner -h -high CMD.EXE /C type d:\cmd\outfile.txt