//flex table opened by JP

Click to See Complete Forum and Search --> : w2k pro + Task Scheduler grief


Not A Luddite
10-09-2001, 03:58 PM
I'd really appreciate a pointer here...
I'm running Apache on a w2k box on my home lan, and I've set up a few jobs to run at regular times (Analog, MySql backup, etc). These jobs run fine, but ONLY as long as the Task Scheduler window is open...

As soon as I close the window the jobs all stop telling me:
"whatever.job" (whatever.bat) 09/10/2001 05:00:00
** ERROR **
The attempt to log on to the account associated with the task failed, therefore, the task did not run.
The specific error is:
0x80070569: Logon failure: the user has not been granted the requested logon type at this computer.
Verify that the task's Run-as name and password are valid and try again.


Now, I've only got one active account (Administrator - yeah, yeah, I know... :rolleyes: ) and I set the pw an' stuff when I set the jobs. On re-opening Task Scheduler lo and behold there are no account details for the jobs.

If I set the jobs to use the System account they don't run at all (same error msg). If I reset the Admin account details for the jobs they run fine UNTIL I close the window :confused:

I guessed it was a file permission thing, tho' it doesn't matter whether I'm logged in locally or not. I don't run an automatic logout. Naturally, I've got full control over the batch files and their target dirs/files. Double-clicking the job runs it.

Then I guessed it was the drives shutting down overnight (box is on 24/7), so I changed the power settings, to no avail.

Tried using the 'AT' cmd, but it just creates an at.job in Task Scheduler. Same results.

BTW, I've searched the M$ kb for 3 hours, phoned mates and cursed the machines mother, all to no end.

Any help at all will be gratefully received and earn large kudos. I'm currently threatening it with a Linux disk....

Not A Luddite
10-20-2001, 06:51 AM
ok, in reply to my own post, and in the hope that it'll help someone else out....

finally solved my problem in choosing NOT to use Task Scheduler!!
Downloaded and installed a prog called WinCron, found at

http://www.ryerson.ca/~sgray/wincron.htm

a small vb6 prog that seems to do the required job. Because it's a vb thing you can't install it as a service, but it'll run if I'm logged in (ok with me) and starts with a shortcut in the All Users startup folder.
The install needs a bit of hacking 'cos it's an InstallSheild thing, after opening the zip just copy the files from the WinCron.cab file to a folder of your choice. Make a shortcut as above and voila!

Still don't know what's up with Task Scheduler, but now I no longer care....;)