Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PsExec is not recognized as an internal or external command

Tags:

I have a job that needs to run a script on a remote computer. I'm doing so by using psexec via "Execute windows batch command":

C:\PsExec.exe \\computername -u username -p password -accepteula c:\xxx.exe

When I run the job I get the following error:

c:\PsExec.exe is not recognized as an internal or external command

** PsExec.exe is located under c:\

Any ideas?

like image 329
YAM Avatar asked Apr 30 '17 07:04

YAM


1 Answers

First Define psexec.exe path in environment varaiable "PATH" or else place psexec.exe file in C:\Windows\System32\

And to Download Psexec.exe file https://download.sysinternals.com/files/PSTools.zip

like image 85
Syed Abdul Qadeer Avatar answered Sep 21 '22 10:09

Syed Abdul Qadeer