locked
Execute a batch file on a remote PC RRS feed

  • Question

  • Hello,

      I have a   batch script on a remote computer. I need to invoke the script without giving the password and also invoke batch should have network resources so that it would copy logs or files from remote machine to local server.


    I tried with psexec 

     psexec -s \\servername command 

     After invoking a batch script Successfully, it doesn't copy logs to local server says access is denied. After googling I found due to Impersonation of psexec it won't allow network resources.  Giving username and password to psexec bat script working fine , but requirement is to achieve without giving password invoke the batch script and copy the logs

    • Moved by Bill_Stewart Friday, April 28, 2017 8:12 PM Unanswerable drive-by question
    Wednesday, March 22, 2017 5:12 AM

All replies

  • That is correct.  It cannot be done without entering set of credentials.


    \_(ツ)_/

    Wednesday, March 22, 2017 5:21 AM