Solved

Windows XP Task Scheduler - task wouldn't execute

Posted on 2016-11-20
17
61 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 8
  • 6
  • 3
17 Comments
 
LVL 95

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 95

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
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 

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 95

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 95

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
 
LVL 95

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 95

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Toshiba Satellite 5 176
XP won't boot 27 161
Decrypting the Zepto Virus 21 675
How Do I Set Up XP Mode in Windows 7? 8 97
Are you unable to synchronize your OST (Offline Storage Table) file with Microsoft Exchange Server? Is your OST file exceeding 2 GB size limit? In Microsoft Outlook 2002 and earlier versions, there is a 2 GB size limit for the OST file. If the file …
Can you find a fax from a vendor you saved a decade ago in seconds? Have you ever cursed your PC under your breath during an audit because you couldn’t find the requested statement or driver history?  If you answered no to the first question or yes …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

739 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