dansimmo
22nd September 2004, 04:08
Hi all

having a problem getting the scheduler to start jobs on our win 2003 server using the startjob.bat method.

We've set up a user job003 with a bwc that stores the password. The bwc works. Then theres a batch file that starts the job with the .bwc. this works fine too. Then theres the scheduled task which is set to run the batch. The task starts but won't run.

It doesn't seem to matter which user we run the task as (including the domain administrator). All we get is the following in the event log

Event Type: Warning
Event Source: Baan
Event Category: Bwconfig
Event ID: 1000
Date: 22/09/2004
Time: 1:08:42 p.m.
User: OURDOMAIN\job003
Computer: OURSERVER
Description:
Env Bse (d:\baan)
Prog BWCONFIG file \ui\bw\config\bwconfig.cpp # 284
Keyword BwConfig
Username baan type S language 2
Process 0x11f8
Lasterror 0
Errno 0
bdberrno 0
Message Current user is not allowed to re-use password information from 'd:\baan\lib\user\job003.bwc'

Any ideas? Can you pass the password as a variable through the batch file, is there an option somewhere to allow stored passwords, or is it a windows 2003 'security enhancement'?

jdboer
22nd September 2004, 09:05
I don't have a solution to your problem, but on our W2003 server the scheduling of BAAN jobs works fine (with the same method as you described; password saved in .bwc file and windows task scheduler). So, it should be possible to make it work that way. I've never seen the error message you have.

Han Brinkman
22nd September 2004, 13:21
Passwords stored in the bwc file are user specific.

Log on on you console as user job003. Store the password in the bwc file.

Make sure that your job is running as user job003 (properties in scheduled tasks).

Regards,
Han

dansimmo
26th September 2004, 23:59
Thanks Han, you're 100% correct. Set the password when logged on as that user and they run fine.