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:

COPY CPU982ADMINADMINNEWACCTGPAYROLL*.ASC BHAM-ENG-DATASHAREGLOBALJJANSKYRBaseSandboxPAYROLL /V /Y

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

    frcs,

    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

    All-Star:

    An expert that got 10 achievements.

    MVP:

    An expert that got 5 achievements.

    Genius:

    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

6ya6ya
  • 2 Answers

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

Hi,
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.
goodluck!

Posted on Jan 02, 2017

Add Your Answer

Uploading: 0%

my-video-file.mp4

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

×

Loading...
Loading...

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.

http://answers.microsoft.com/en-us/windows/forum/windows_vista-performance/task-image-is-corrupt-or-has-been-tampered-with/91c0aef2-fa32-4795-8eb2-5c109cabe550?auth=1

1. Back up your registry FIRST.
http://windows.microsoft.com/en-us/windows/back-up-registry#1TC=windows-7

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.


26136749-5kscthjft3aow0lvdqect10u-4-0.jpg

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

Tip

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.
--------------------------------------------------------------------------------
APPLIES TO
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
http://support.microsoft.com/kb/920730

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

Tip

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

Printer not printing.


Follow these steps to resolve the issue. Windows XP
  1. On the Windows taskbar, click Start, and then click All Programs.
  2. Click Accessories, and then click System Tools.
  3. Click Scheduled Tasks. The Scheduled Tasks window opens.
  4. Under Name, click and delete any task that starts with Webreg (for example, Webreg 20031218075500).
  5. Close the Scheduled Tasks window.
Windows Vista
  1. On the Windows taskbar, click the Windows icon (c01319360.gif).
  2. Right-click Computer, and then click Manage. The Computer Management window opens.
  3. In the left pane, click the arrow next to Task Scheduler, and then click Task Scheduler Library.
  4. Under Name, find and click any task that starts with Webreg (for example, Webreg 20031218075500).
  5. In the Actions pane, click Delete.
  6. In the Confirm delete dialog box, click Yes.
  7. Close the Computer Management window.
Windows 7
  1. On the Windows taskbar, click the Windows icon (c01319360.gif).
  2. Right-click Computer, and then click Manage. The Computer Management window opens.
  3. In the left pane, click the arrow next to Task Scheduler, and then click Task Scheduler Library.
  4. Under Name, find and click any task that starts with Webreg (for example, Webreg 20031218075500).
  5. In the Actions pane, click Delete.
  6. In the Task Scheduler dialog box, click Yes.
  7. Close the Computer Management window.

Jul 19, 2010 | HP PSC 1510 All-In-One InkJet Printer

1 Answer

My tune up utility says my prefetch folder is gone and it is important for my laptop to increase the start up..how 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

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 Intel.com ~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
restart.

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,628 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

18377 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

Loading...