Link to home
Start Free TrialLog in
Avatar of shawn857
shawn857

asked on

Windows XP Task Scheduler - task wouldn't execute

Hello experts, I've never used the Task Scheduler before and recently tried to set up a task to launch a simple .cmd batch file at a specified time. It wound up not working because upon launch it asked for the password for the current user. On this old XP system I don't have any specific password that I use when I log in.. it just boots right up. Could it be that the password that the task scheduler is looking for is just the default "administrator", or something like that?

Thanks
   Shawn
Avatar of John
John
Flag of Canada image

Does "administrator" have a password?  It is not disabled in XP. If never set, password is blank and then Task Scheduler should work without a password.

Make sure the XP user you are using is a member of the Administrator's Group. Users and Groups.
Avatar of shawn857
shawn857

ASKER

Thanks John... I went into USER ACCOUNTS and my user account "JD" says "Computer Administrator" next to it, so I guess it's administrator. There is no password set... there never has been. I went back in to the Task Scheduler to try and run my batch file again. I filled in everything as I had did before. When I finished the wizard, it popped up a window saying:

---------------------------
Task Scheduler
---------------------------
The new task has been created, but may not run because the account
information could not be set.
The specific error is:
0x80070005: Access is denied.
Try using the Task page Browse button to locate the application.
---------------------------
OK  
---------------------------

I clicked on that and waited the couple of minutes to see if it would launch... it failed. Gave a status of "Could not start".

Thanks
    Shawn

P.S: Wasn't there another comment by an expert on this question? I received an email saying there was a comment by "Pune Tech". I saw the comment and read it last night, but tonight it's gone.
Thanks for the clarification.

Try making a password for your user Account, restart and try again.

If that does not work, then it appears something has gone wrong with XP - that is, it is not purely a setup or permission issue.

If you have the XP Install CD, try running System File Checker.

You are and Administrator. Open cmd.exe with Run as Administrator and run SFC /SCANNOW. Allow to complete, restart and test.
Well, I don't want to have to put in a password everytime I reboot this XP computer. I'm going to switch to my Vista desktop to try running this task instead. I just had a look at this page on how to setup Task Scheduler in Vista:

http://www.wikihow.com/Use-Task-Scheduler-(in-Vista)

Seems 10 times more complicated than XP but I got it set up and instructed it to launch my .cmd file in a few minutes. So I waited and when the launch time rolled around nothing happened. No message, no error, no change of status of my task in the Task Scheduler... nothing at all. Status still reads "ready". The user account ("Joan") on this computer is set up as Administrator also... no password.

So I'm stumped again...

Thanks
   Shawn
XP is generation passed DEAD. Passwords are now a fact of life, so best get used to it. The whole world (maybe except for you) uses passwords now.
Be that as it may... can you help?

Thanks
   Shawn
I have only ever used passwords. If you try a password and that does not work and nothing else has worked, you may need to reinstall XP Pro.
No John, as I mentioned a couple of messages ago - I switched to my Vista machine to try to make this work, but still not working. Can you help me there?

Shawn
ASKER CERTIFIED SOLUTION
Avatar of John
John
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of BillDL
Problems with Task Scheduler not running *.CMD (batch) files properly is common.

What is the exact command that you have used to launch the CMD file?
Does it call CMD.EXE and run the *.CMD file as a parameter by specifying the fully qualified double-quoted path to it.

What does your batch file do?
Does it use environment variables like %USERPROFILE%
OK I got it working on Vista guys! BillDL - thanks for your comment too, the batch file invokes a stock data downloading program to gather quotes from Yahoo Finance. What did the trick was putting a check mark next to "Run with highest privilege" in the PROPERTIES|GENERAL tab. Don't know why this was necessary as my user account was Administrator anyway, but oh well... as long as it works.
    My one last question is - in XP's basic Task Scheduler I could set this task to be run every WEEKDAY (no need for stock downloads on weekends, of course)... but in the Vista Task Scheduler - even with it's tons of options and settings - I don't see this anywhere. Any thoughts?

Thanks
    Shawn
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
That did the trick, thank you! Everything's good now!

Cheers
   Shawn
That did the trick, thank you! Everything's good now!

Cheers
   Shawn
Thanks gentlemen!

Shawn
You are welcome and I was happy to help.
Thank you Shawn