PDA

Click to See Complete Forum and Search --> : Scheduled Tasts, program won't run...


CVMichael
Dec 10th, 2003, 11:03 PM
I made a program in VB that does the backup on the computer is on. I installed it on 2 computers at work.

I've added the program on a Scheduled Task to run at 11:00 PM (on both computers) and the program runs only on one of the comptuers. If I start the program manually, no problem, it runs just fine, but it does not run at the scheduled time. I also tried to run it manually by right clicking on the task and clicked on the "Run" menu, and nothing...

I know it's not a problem with the program because I've tested it on my own computer, and it's fine. But i can't undesrtand why it won't run on the other computer at work ??

Ideas Man
Dec 10th, 2003, 11:33 PM
Check the user account the task is set to run as. Make sure that the username and password is right and that user has permission to do what the task wants. This is one area where lots of people stuff up, and will cause theproblem you are experiencing.

CVMichael
Dec 11th, 2003, 06:01 PM
I think I fixed it... I've plaied around with it for about 30 minutes, and I got it to work on the comptuer that did not work at all...
I'm not sure what exactly of the things I did fixed the problem, the last 2 things I did (for the people who have the same problem) it was to change the registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurentControlSet\Control\Lsa\limitblankpassworduse I changed it to 0 (disabled), and the next thing I did was to go to Control Panel/Administrative Tools/Services/Task Scheduler and unchecked the "Allow service to interact with desktop" on the Log On tab.
After this, the scheduled task started (at the time i've set it, when I tested it), but again... I'm not 100% those are the things that made it work... since i've tried a few more things witch I don't even remember what they were....