1

I have a build step that needs to run a console application under a different (more privileged) user account.

However PsExec always returns with the exit code -1073741502.

I thought the issue was from my app but when I replace with the following it still fails:

PsExec.exe -accepteula -u Username -p Password "cmd.exe" /C

Or

PsExec.exe -i -accepteula -u Username -p Password "cmd.exe" /C

Note that TeamCity build agent runs under a user account created specifically for it. When I manually log in as that user and run the above commands they work fine.

stimms
  • 42,945
  • 30
  • 96
  • 149
JeanT
  • 1,339
  • 1
  • 10
  • 9

0 Answers0