On our project we want to deploy our .Net application to remote machine. For that purpose we have chosen PsExec tool. The propblem is that the commands that work fine in cmd
don't work in Jenkins. They look the similar way in Jenkins
bat '%windir%\\sysnative\\PsExec.exe \\\\ipaddress -u user -p password -accepteula -h cmd /c "command" /q"'
Jenkins prints that Access is denied
, although it works well in cmd
. Why should I do? How it works differently in Jenkins and cmd? Maybe I'm doing something wrong?
Your Jenkins service must be launched by an admin user. Then you'll have access to these commands.