Solved

Scheduled task fails Last result 0x1

Posted on 2007-11-27
8
65,825 Views
Last Modified: 2011-06-20
I had a group of users running a shared account that I am forcing them off of. They had a scheduled task running on the shared machine rwith the the shared account as the run as account They never logged off in the past. The scheduled task simple runs a bat file located on an server once a day. Since I made them use their own accounts the job runs, but will not execute the batch. The last result is 0x1.

I have tried many things to fix this and the task is not using the check mark "Run only if logged on" so it should run when no one is logged on. I created the task on the server where the bat is located on and still could not get this thing to run when no one is logged on. The only way it seems to run is if I am logged on as the user who created it, the run as account. If I log on with a domain admin account, but the run as account is something different, it still gives me the 0x1 result and the batch does not run.
0
Comment
Question by:dumamo
  • 3
  • 3
8 Comments
 
LVL 26

Expert Comment

by:souseran
Comment Utility
The 0x1 error means an incorrect function was called or an unknown function was called.

Was the task originally created with the shared account? If so, can one of the users recreate the task when they are logged on and does it run then? Was the task in any way tied to the shared account? Did it run executables in that accounts My Documents folder, for example?
0
 
LVL 26

Expert Comment

by:souseran
Comment Utility
Also, see this Microsoft article:

How to troubleshoot scheduled tasks in Windows XP and in Windows Server 2003

http://support.microsoft.com/kb/308558
0
 

Author Comment

by:dumamo
Comment Utility
Yeah I have seen the article as it is in the top 3 on a simple Google search.  I know all ther permission are correct and such. As I said, I have recreated the task on the server as myself and as the shared account. Again, they run fine as long as I am logged in with that account. I thought it might be an issue with the path as DFS was in play, but I got the same result when the path was local. Thanks.
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

by:dumamo
Comment Utility
Let me amend my last statement: When I create the ST as myself and run it, the batch executes as I see the file copy, but the last result is still 0x1. And I just noticed if I go to the batch and right click to edit, I get "Windows cannot access the specified device, path, or file. You may not have the appropriate permissions to access the item". I do think there is something up with the folder it resides in as this error occurs if I create a new bat as well. I am a domain admin when I am trying this, so permissions issues seem unlikely.
0
 

Accepted Solution

by:
dumamo earned 0 total points
Comment Utility
Will close question:
Some scheduled tasks that require user credentials do not start on a Windows Server 2003-based computer if the user is not logged in
http://support.microsoft.com/kb/890478
0
 
LVL 26

Expert Comment

by:souseran
Comment Utility
No problem and no objection. Glad you got it resolved.
0
 
LVL 1

Expert Comment

by:Computer101
Comment Utility
Closed, 500 points refunded.
Computer101
EE Admin
0

Featured Post

Are end users causing IT problems again?

You’ve taken the time to design and update all your end user’s email signatures, only to find out they’re messing up the HTML, changing the font and ruining the imagery. What can you do to prevent this? Find out how you can save your signatures from end users today.

Join & Write a Comment

Learn about cloud computing and its benefits for small business owners.
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

743 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

17 Experts available now in Live!

Get 1:1 Help Now