Solved

Windows XP Task Scheduler - task wouldn't execute

Posted on 2016-11-20
17
53 Views
Last Modified: 2016-12-01
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
0
Comment
Question by:shawn857
  • 8
  • 6
  • 3
17 Comments
 
LVL 92

Expert Comment

by:John Hurst
ID: 41895879
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.
0
 

Author Comment

by:shawn857
ID: 41898548
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.
0
 
LVL 92

Expert Comment

by:John Hurst
ID: 41899056
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.
0
 

Author Comment

by:shawn857
ID: 41899983
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
0
 
LVL 92

Expert Comment

by:John Hurst
ID: 41900045
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.
0
 

Author Comment

by:shawn857
ID: 41901125
Be that as it may... can you help?

Thanks
   Shawn
0
 
LVL 92

Expert Comment

by:John Hurst
ID: 41901468
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.
0
 

Author Comment

by:shawn857
ID: 41901741
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
0
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
LVL 92

Accepted Solution

by:
John Hurst earned 250 total points
ID: 41901757
It runs fine on my Vista Business machine (Virtual Machine).

Start, Administrative Tools, and right click on Task Scheduler. Select Run as Administrator. Try that.

Vista-Task-Scheduler
0
 
LVL 38

Expert Comment

by:BillDL
ID: 41901850
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%
0
 

Author Comment

by:shawn857
ID: 41902107
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
0
 
LVL 38

Assisted Solution

by:BillDL
BillDL earned 250 total points
ID: 41902126
Shawn, I have never owned a Vista computer.  I've fixed a few of them though.  I bypassed that OS completely and have a Windows 7 laptop, but my main computer still is .... ready for it ..... Windows XP - shock, horror !!!  Yes, this "dead in the water" PC has never been hacked or caught a virus and it does what I need it to do for the time being.  Some of us can't afford to buy new computers every time Microsoft rushes out another half-baked operating system, and I will use Linux before I buy Windows 10.

If Windows Vista is the same layout as the Windows 7 Task Scheduler, then as Jim Cofer states in his blog article, getting to the "Weekdays" option is counter-intuitive.  Under the Task Trigger you choose "Weekly" and you then see the days of the week checkboxes:
http://jimcofer.com/personal/2012/03/16/win7-task-scheduler-and-weekdays/
0
 

Author Comment

by:shawn857
ID: 41908156
That did the trick, thank you! Everything's good now!

Cheers
   Shawn
0
 

Author Comment

by:shawn857
ID: 41908157
That did the trick, thank you! Everything's good now!

Cheers
   Shawn
0
 

Author Closing Comment

by:shawn857
ID: 41908158
Thanks gentlemen!

Shawn
0
 
LVL 92

Expert Comment

by:John Hurst
ID: 41908521
You are welcome and I was happy to help.
0
 
LVL 38

Expert Comment

by:BillDL
ID: 41908529
Thank you Shawn
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Where are the paths %systemroot% stored. 5 148
User laptop information 6 142
Clone HDD in RAID1 10 120
XP driver for Dell Color MFP H625cdw printer needed 7 150
We have adopted the strategy to use Computers in Student Labs as the bulletin boards. The same target can be achieved by using a Login Notice feature in Group policy but it’s not as attractive as graphical wallpapers with message which grabs the att…
It is only natural that we all want our PCs to be in good working order, improved system performance, so that is exactly how programs are advertised to entice. They say things like:            •      PC crashes? Get registry cleaner to repair it!    …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now