PsExec access denied on remote Win2012 server

TeamCity Command Line step:  C:\Windows\Sysnative\psexec.exe \\192.168.xxx.xxx -u test-admin -p test-pwd -accepteula "D:\Katalon Test\test.bat"

Remote server is Win2012 running 64bit requiring use of 'sysnative' in command path so PsExec will execute from 32bit folder.

Command runs without error interactively from TC server command window, but when running from TC build step:

[10:53:18][Step 6/7] PsExec v1.97 - Execute processes remotely
[10:53:18][Step 6/7] Copyright (C) 2001-2009 Mark Russinovich
[10:53:18][Step 6/7] Sysinternals - www.sysinternals.com
[10:53:18][Step 6/7]
[10:53:18][Step 6/7] Access is denied.
[10:53:19][Step 6/7] Connecting to 192.168.171.195...
[10:53:19][Step 6/7]
[10:53:19][Step 6/7] Couldn't access 192.168.171.195:
[10:53:19][Step 6/7] Connecting to 192.168.171.195...
[10:53:19][Step 6/7]
[10:53:19][Step 6/7] Process exited with code 5
 
The 'test-admin' user was setup in Administrators, Remote Desktop Users and Remote Management Users; verified credentials by running remote desktop session to Win2012 server.
0
1 comment

Hi,

 

I'm not fully sure that this is the case, but it could be an issue that the "sysnative" requirement is not properly handled. Please, first make sure that your attempts to replicate from the command line are run with the exact same user and environment that is running the agent's process, and if that's the case, open an issue in our tracker: https://youtrack.jetbrains.com/issues/TW

0

Please sign in to leave a comment.