I have 2 windows scheduler tasks configured to run some exe on the remote machine. Both scheduled tasks triggers at exact the same time (say, at 06:00 AM) and they both do the same thing: they remotely execute my exe via paexec on the same remote machine. Sometimes that works OK as it should, but sometimes it fails on both task instances, with paexec code error -6.

The command used to run both of these two task, configured in windows scheduler, is:

paexec \\RemoteMachine -u MyuserName -p Mypassword -h -c -csrc C:\MyProg.exe MyProg.exe

I'm wondering why this error sometimes occur (more often than not) and, of course, how to get this to work correctly. Any ideas? (Remark: the error never shows up when those tasks are configured to run at different times!)

asked 26 Aug '16, 03:58

xeno's gravatar image

xeno
1111
accept rate: 0%

edited 26 Aug '16, 06:01


Hi Xeno,

Yes you are running into the following issue...
-6 = PAExec service could not be installed/started on remote server

The error codes are listed on the PAExec Page. I don't think that what you are going to be able to do this because you are trying to create two identical processes at the same time and the OS isn't going to let you do that.

Thanks
Quinn

Please make sure to mark your questions accepted when you have your answer by clicking the gray check mark to the left of the answer.

link

answered 29 Aug '16, 17:25

Quinn's gravatar image

Quinn ♦♦
14.4k3925
accept rate: 35%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×60
×37

Asked: 26 Aug '16, 03:58

Seen: 137,748 times

Last updated: 29 Aug '16, 17:25