Process returns the code 1385 on EPsxec.exe

Vassili K 1 Reputation point
2021-11-03T19:35:55.023+00:00

I am running PsExec.exe from the .bat script (which calls another .bat script). At first, program for very shot moment shows the Command prompt window with:
"PsExec v 2.1 - Execute process remotely".

And right on the top of first screen shows anothe Command prompt:
"Process returns the code 1385".

We recently copied /PsTools/ folder from old test machine to a new one. I entered license just by double click PsExec.exe and excepted License.
May be significant detail: the .bat script changes LANID to another test user. (For whom the license was not accepted).

What this error "Process returns the code 1385" actually means? And how to make it run?
Thank you.

Sysinternals
Sysinternals
Advanced system utilities to manage, troubleshoot, and diagnose Windows and Linux systems and applications.
1,087 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Castorix31 81,721 Reputation points
    2021-11-03T20:44:53.087+00:00

    If you look the doc, it says :

    ERROR_LOGON_TYPE_NOT_GRANTED
    1385 (0x569)
    Logon failure: the user has not been granted the requested logon type at this computer.

    You can see the answer from foxmsft in this thread : PsExec: Logon failure: the user has not been granted the requested logon type at this computer.

    0 comments No comments