Question about Microsoft Windows Server 2003 Enterprise Edition for PC

1 Answer

Windows 2003 Server Task Scheduler Exit Code (1)

I have a cmd file that is executed every morning at 2:59:59 in Windows 2003 Server Task Scheduler. It runs, taking about 20 minutes to complete its tasks. If I run it manually from the command line, it runs without error. The automated run in Task Scheduler, however, finishes with an Exit Code of (1).

The task list is fairly simple: I delete all files in about 12 folders on three network drives, and copy about 500 files from a production system into those same folders. The idea is to get the production system backed up to three network locations, so we always have yesterday's data available.

I've entered my own Active Directory credentials in the scheduler to ''backup as'' myself (admin), and following deletion, am using the UNC convention to copy out the files, following this format:


Here is the result with the error code:
''Backup RBase.job'' (BackupRBase.cmd)
Started 3/4/2009 3:00:00 AM
''Backup RBase.job'' (BackupRBase.cmd)
Finished 3/4/2009 3:20:23 AM
Result: The task completed with an exit code of (1).

You can see, it took 20 minutes and 23 seconds to run, so it IS doing something, but the error code concerns me. I'm finding little help in a google search.

Posted by on

  • 1 more comment 
  • Damon Gray
    Damon Gray Mar 05, 2009


    No joy. I walked through the file line by line. These are just simple "DOS" copy commands - copy path\filename newpath\filename /v /y

    I found no anomolies. It all looks very uniform since there are scores of identical lines row after row, with the only difference being the filename extensions.

    I also tried changing the UNC path to the mapped drive name. Last night's run still resulted in an exit code of (1).

    Any thoughts on where to take this?

  • Damon Gray
    Damon Gray Mar 06, 2009

    Hmmmmmm, that's a heck of a thought. Let me change it to an 8.3 filename and see if that fixes the issue. I'll letcha know.

  • Damon Gray
    Damon Gray Mar 10, 2009

    Still no joy. So, today, I meticulously walked through lines of this file. I did find one whack "/' that was supposed to be an escape character, but was butted up against the end of the path statement, so it may have been the cause of the issue. The process will run again at 3AM tomorrow. I'll post the results here.


1 Answer

  • Level 3:

    An expert who has achieved level 3 by getting 1000 points


    An expert that got 10 achievements.


    An expert that got 5 achievements.


    An expert who has answered 1,000 questions.

  • Master
  • 1,605 Answers

The exit code of 1 or 0x1: Incorrect function called or unknown function called.
check your backupRBase.cmd file. one of the URL or function need to be modify.

Posted on Mar 04, 2009

  • Frank
    Frank Mar 05, 2009

    the error code shouldn't create any problem, since you already running the file.

    the only suggestion I have is to shorten the file name. I see the file name is rather long that may be only thing that is causing the error. The original DOS files name is 8.3 (8 character with 3 ext.). Windows now accepts 32bits, but since you are running DOS file command. I suggest you cut the file name shorter.

  • Frank
    Frank Mar 06, 2009

    it doesn't have to be 8.3, it can be any thing. Just shorter than what you have now.


2 Suggested Answers

  • 193 Answers

SOURCE: Windows 2003 Server Task Scheduler Exit Code (1)

return 1 does not necessarily mean that it didn't work, it just means that it ended under unusual circumstances. sometimes using a task scheduler has that effect. as long as the files end up where they are supposed to go i wouldn't worry about it.

Posted on Aug 14, 2009

  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

a 6ya expert can help you resolve that issue over the phone in a minute or two.
best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
the service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (for users in the US for now) and get all the help you need.

Posted on Jan 02, 2017

Add Your Answer

Uploading: 0%


Complete. Click "Add" to insert your video. Add



Related Questions:

2 Answers

When I try to schedule a task I receive this Error A6A3B6B2-1EA5-4C5A-BD20-3E6A6A8E429B and it says THE TASK IMAGE IS CORRUPT OR HAS BEEN TAMPERED WITH.

Contrary to the above answer, you absolutely CAN use the task scheduler to power down your computer.
Your task scheduler is corrupt, and needs to be rebuilt.

You will need to edit the registry to fix this problem.
Follow the instructions via the link below, 1st answer @ the top of the page.

1. Back up your registry FIRST.

2. Navigate to the key, HKLM\SOFTWARE\Microsoft\Windows NT\Current Version\Schedule. See image below.

3. The schedule key will have several subkeys located on the right side of the registry window. Single click on the Schedule key on the left of the screen, and you will then see all of the subkeys display on the right side of the window. Delete all of the subkeys on the right side of the window (ONLY), and reboot your computer.
4. Test by scheduling a task.


Mar 20, 2016 | Microsoft Windows 7 Home Premium 64BIT...


How to disable and re-enable hibernation on a computer that is running Windows

The Hiberfil.sys hidden system file is located in the root folder of the drive where the operating system is installed. The Windows Kernel Power Manager reserves this file when you install Microsoft Windows. The size of this file is approximately equal to the amount of random access memory (RAM) that is installed on the computer.
The computer uses the Hiberfil.sys file to store a copy of the system memory on the hard disk when the hybrid sleep setting is turned on. If this file is not present, the computer cannot hibernate.
Hibernation is made unavailable when you set the value of the Hibernate after setting to Never by using the Power Options item in Control Panel. To make hibernation unavailable, follow these steps:
Click Start, and then type cmd in the Start Search box.
In the search results list, right-click Command Prompt, and then click Run as Administrator.
When you are prompted by User Account Control, click Continue.
At the command prompt, type powercfg.exe /hibernate off, and then press ENTER.
Type exit, and then press ENTER.
To make hibernation available, follow these steps:
Click Start, and then type cmd in the Start Search box.
In the search results list, right-click Command Prompt, and then click Run as Administrator.
When you are prompted by User Account Control, click Continue.
At the command prompt, type powercfg.exe /hibernate on, and then press ENTER.
Type exit, and then press ENTER to close the Command Prompt window.
Windows Vista Business
Windows Vista Enterprise
Windows Vista Home Basic
Windows Vista Home Premium
Windows Vista Starter
Windows Vista Ultimate
Windows Server 2008 Datacenter without Hyper-V
Windows Server 2008 Enterprise without Hyper-V
Windows Server 2008 for Itanium-Based Systems
Windows Server 2008 Standard without Hyper-V
Windows Server 2008 Datacenter
Windows Server 2008 Enterprise
Windows Server 2008 Standard
Windows Web Server 2008
Windows Server 2008 R2 Datacenter
Windows Server 2008 R2 Enterprise
Windows Server 2008 R2 Standard
Windows 7 Enterprise
Windows 7 Enterprise N
Windows 7 Professional
Windows 7 Professional N
Windows 7 Ultimate
Windows 7 Ultimate N

on Nov 19, 2013 | Microsoft Windows Vista Home Premium with...


How to bypass Vista's UAC using Task Scheduler and Tweak UAC

The UAC function on Windows Vista is a good idea however several applications like CCleaner and HostMan will not autostart unless you follow the instructions included in my archive file download it HERE from my SkyDrive

I have included an elevated command prompt and examples of the XML files that you can import into Task Scheduler and modify to allow the mentioned applications to run, also included is my PromptOnSecureDesktop reg tweak if needed for you system

on May 03, 2010 | Microsoft Windows Vista Ultimate Edition

1 Answer

What is the process for cleaning autorun.inf

Method One
  • Open command line (CMD) and write the following:
del /a:rhs [driveletter]:autorun.inf
  • Simply Replace [driveletter] with your drive. If the virus is on the D drive the commad will be
del /a:rhs D:autorun.inf
  • Restart the computer & Done.
Second Method

Genreally when you refresh the windows explorer view a bounded virus process recreates this file. This file is attached to many events of windows explorer including OPEN, REFRESH, etc.
You must close opened explorer windows.
1. Open up a command prompt (i.e. cmd.exe) >> to load it go to Run, type cmd, enter.
2. Now to remove virus's attributes (in order to delete it type following line by line and execute them pressing enter.

F:attrib -s -r -h *.*

If there are any malicious EXE files those are now visible so if unnecessary delete them too.

F:del autorun.inf

3. After finishing above, quickly remove the pendrive as soon as posible (just after executing del command).
4. Now your pen is without virus activation config. file. Now you can safely delete unnecessary EXE files on it.
Method Third

  • Download Flash_Disinfector.exe from here and save it to your desktop.
  • Double-click Flash_Disinfector.exe to run it and follow any prompts that may appear.
  • The utility may ask you to insert your flash drive and/or other removable drives including your mobile phone.
  • Please do so and allow the utility to clean up those drives as well.
  • Wait until it has finished scanning and then exit the program.
  • Reboot your computer when done.

By this way you can remove

Jan 28, 2011 | Computers & Internet

1 Answer

My tune up utility says my prefetch folder is gone and it is important for my laptop to increase the start will i solve this problem?..i didnt delete anythin in my laptop so i was wondering how...

1. Make sure that the task scheduler is enabled. If you are un-sure, go to Start/Control Panel/Administrative Tools/ Click on Services/ Then in the list of services make sure the Task Scheduler is enabled & restart the service by clicking on Start. Close the Services Folder & go back to desktop.

2. Then go to START/RUN/ and TYPE IN cmd (without the quotes) CLICK OK. This will bring up the DOS Command screen.

3. You will need to copy and paste this entry in at the flashing cursor
 rundll32.exe advapi32.dll,ProcessIdleTasks (without quotes) and press ENTER.

4. Now reboot three times and your Prefetch folder will be rebuilt. (It takes 3 reboots for the prefetch folder to work out what it needs)

Feb 06, 2010 | Microsoft Windows Vista Home Premium with...

1 Answer

Windows automatic shutdown

1. create a new text file by opening notepad. 2. paste the following in the text file:
echo off shutdown.exe -r -t 00
3. save the text file but change the .txt file extention to .bat. 4. under control panel, open task scheduler. 5. schedule a new task to run your new .bat file, whenevr the pc should be shut down.
good luck.

Aug 26, 2009 | Computers & Internet

2 Answers

Windows 2003 Server Task Scheduler Exit Code (1)

Have you tried to use robocopy.exe instead of copy? Robocopy have a logging option and is a lot more powerful. It's available in Windows Server 2003 Resource Kit Tools.

May 26, 2009 | Microsoft Windows Server 2003 Enterprise...

1 Answer

Windows Vista Many Taskeng.exe processes

1. Go to the start menu.
2. Type task scheduler and press enter.
3. Press continue on the UAC popup.
4. In the left pane of task scheduler, underneath Task Scheduler Local, right-click on Task Scheduler Library.
5. In the View submenu, make sure the Show Hidden Tasks option is checked.
6. Widen the Name column in the center pane. The hidden task that is likely at fault has a name that starts with User_Feed_Synchronization, followed by a dash and a bunch of digits inside a curly brace.
7. Select that task in the middle pane by clicking on its name.
8. To verify that this scheduled task is creating all those taskeng.exe processes, select the History tab in the middle pane near the middle of the screen. If you expand out the Level and Date and Time Columns, you should see a bunch of errors and date and times that are 5 minutes apart. If that's the case, then this task is the problem.
9. On the rightmost pane, select Disable.
10. There may be more than one scheduled task like this, so you'd need to disable any or all that were causing problems.

P.S.: If this information was helpful, please rate this solution.

Mar 13, 2009 | Microsoft Windows Vista Home Basic for PC

1 Answer

Not Installing Intel D945GCNL drivers for windows 2003 sp2 server

The first thing you need to do is load the chipset drivers for the 945 chipset which is an executable file provided by ~Steve Medley

Nov 05, 2008 | Microsoft Windows Server Standard 2003 for...

1 Answer

Ntsokrnl.exe is curropted reinstall the file

1. boot with xp or win2003 cd and choose "R" repair in the begining.
choose win installation and write administrator password.
run checkdisk. write "chkdsk /R". enter

2. write "fixmbr c:" enter
and "fixboot c:" enter

3. if 1 & 2 doesent work boot again in repair mode and try this
write expand d:\i386\ntoskrnl.ex_ c:\windows\system32 overwrite the file.
exit and reboot.

Jul 17, 2008 | Microsoft Windows Server Standard 2003 for...

Not finding what you are looking for?
Computers & Internet Logo

6,616 people viewed this question

Ask a Question

Usually answered in minutes!

Top Microsoft Computers & Internet Experts

micky dee

Level 3 Expert

2642 Answers

Les Dickinson
Les Dickinson

Level 3 Expert

18354 Answers

Brian Sullivan
Brian Sullivan

Level 3 Expert

27725 Answers

Are you a Microsoft Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides