Scheduled task fails Last result 0x1

Posted on 2007-11-27
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.
Question by:dumamo
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
  • 3
  • 3
LVL 26

Expert Comment

ID: 20360063
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?
LVL 26

Expert Comment

ID: 20360078
Also, see this Microsoft article:

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

Author Comment

ID: 20360705
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.
Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI


Author Comment

ID: 20360833
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.

Accepted Solution

dumamo earned 0 total points
ID: 20361332
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
LVL 26

Expert Comment

ID: 20362468
No problem and no objection. Glad you got it resolved.

Expert Comment

ID: 20389831
Closed, 500 points refunded.
EE Admin

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

A small collection of useful tips and tricks for Windows 10 users that I decided to write as a result of recent questions that were asked and answered at Experts Exchange. Two short video tutorials included. Enjoy..
This article shows how to use a free utility called 'Parkdale' to easily test the performance and benchmark any Hard Drive(s) installed in your computer. We also look at RAM Disks and their speed comparisons.
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

617 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