Search code examples
loggingcmdpsexec

Psexec - how to output error encountered to a txt file


Want to be able to output error encountered by psexce to be logged in txt file

e.g. unable to access computer, as i am attempting to connect to 30+ computers, over night.


Solution

  • simplest approach:

    2>results.txt
    

    add to the end of the batch file

    thanks! @JosefZ