Windows task plan execution result 0x0 0x1 meaning and win2008 system plan task usage introduction

  
recently encountered a strange phenomenon, when using a regular backup of a system, the non-system comes with Rsync command, but the manual start is no problem, and I am very much looking forward to batching on multiple hosts. What should I do? Windows Server 2003 performs the task plan as follows, and there is an accident under Windows Server 2008 R2. Under normal circumstances, our mission plan will have feedback values, which can be used to determine whether the mission plan was running normally (detailed connection: http://support.microsoft.com/kb/267031/). · Code 0 or 0x0: The operation completed successfully. · Code 1 or 0x1: The function called is incorrect or an unknown function is called. This error can also occur if the file does not exist · Code 10 or 0xa: The environment is incorrect. · Code 0x8009000f: General access denied



Figure 1 sees the last run result is non-zero

This non-〇 situation indicates Can't be accepted.

By setting a breakpoint on this batch, I saw this error message.


Figure 2 Adding Pause to the batch to perform breakpoints and viewing the error information

Obviously, this rsync is not the program and files that come with the system, so it cannot be The system directly calls, guessing and environment variables, carefully looking for the task scheduling options under Windows Server 2008 R2, I saw this fill in the blank.


Figure 3 starts with (optional)

I fill this in the directory where the script is located, run the task plan again, get back Successfully tagged, and received corresponding backup content on the server side of the service.

Here, the mission plan of the two versions of the operating system is different. The following items can be selected under Windows Server 2003. There are not many projects, but he will start by filling in the default situation. The directory above is used.


Figure 4 Windows Server 2003 The following is the default, the default is filled out. Therefore, when setting the task plan of Nt6 core-based system such as Windows Server 2008, 2012, it is recommended to start at Make some settings.

Copyright © Windows knowledge All Rights Reserved