Were the tasks originally created with "AT.exe"? While all versions of the task scheduler support AT, the later tools like JT and SCHTASK can't always reliably read the parameters of AT. Also - AT did not specify user credentials - it runs in the context of the local SYSTEM account. It's possible that you aren't really updating the task parameters completely.
If you aren't sure, I'd read and display the task parameters to make sure the JT based library can read the data values. If they look OK, just update the UID and PWD parameters with tcDefineTask("UID=user PWD=passwd). Then, delete the task ( tcDelEvent() ) and re-save it ( tcSetEvent() ). This way, you'll know that it has the correct format to be managed moving forward. We depreacated the use of AT years ago, so I really haven't done too much testing for backward compatibility.
Glenn
_________________________
Actually I
am a Rocket Scientist!