Toutes les tâches planifiées par le planificateur de Windows sont listées dans cette table.
Nom du champ |
Type |
Description |
id_snapshot |
number |
Numéro de l'image réseau |
server_name |
string |
Nom Netbios du serveur (sans \\) |
TaskName |
string |
Nom du fichier de la tâche |
NextRunTime |
date |
Prochain démarrage. Une valeur nulle indique jamais. |
LastRunTime |
date |
Dernier démarrage. Une valeur nulle indique jamais. |
StartCode |
number |
Code d'erreur si la tâche n'a pas démarré. 0 indique que la tâche a démarré. |
ExitCode |
number |
Code de retour du processus démarré. Une valeur non nulle indique qu'il y a eu des problèmes lors de l'exécution. |
Command |
string |
Chemin de l'exécutable à démarrer |
Arguments |
string |
Arguments pour l'exécutable |
WorkingFolder |
real |
Répertoire de travail pour l'exécutable |
MaxRunTime |
real |
Temps d'exécution maximum en jours |
Flags |
number |
Propriétés de la tâche (cf Annexe 1) |
Status |
number |
Etat de la tâche (cf Annexe 2) |
RunAs |
string |
Compte d'exécution du processus |
Schedule |
string |
Description de la planification |
Nom Symbolique |
Valeur du bit |
Description |
TASK_FLAG_INTERACTIVE |
0x1 |
|
TASK_FLAG_DELETE_WHEN_DONE |
0x2 |
The work item will be deleted when there are no more scheduled run times. |
TASK_FLAG_DISABLED |
0x4 |
The work item is disabled. This is useful to temporarily prevent a work item from running at the scheduled time(s). |
TASK_FLAG_START_ONLY_IF_IDLE |
0x10 |
The work item begins only if the computer is not in use at the scheduled start time. Windows 95 only. |
TASK_FLAG_KILL_ON_IDLE_END |
0x20 |
The work item terminates if the computer makes an idle to non-idle transition while the work item is running. |
TASK_FLAG_DONT_START_IF_ON_BATTERIES |
0x40 |
The work item does not start if its target computer is running on battery power. Windows 95 only. |
TASK_FLAG_KILL_IF_GOING_ON_BATTERIES |
0x80 |
The work item ends, and the associated application quits if the work item's target computer switches to battery power. Windows 95 only. |
TASK_FLAG_RUN_ONLY_IF_DOCKED |
0x100 |
|
TASK_FLAG_HIDDEN |
0x200 |
The work item is hidden. When the work item begins execution, it runs in a hidden window. |
TASK_FLAG_RUN_IF_CONNECTED_TO_INTERNET |
0x400 |
The work item runs only if there is currently a valid Internet connection. |
TASK_FLAG_RESTART_ON_IDLE_RESUME |
0x800 |
The work item starts again if the computer makes a non-idle to idle transition before all the work item's task_triggers elapse. |
TASK_FLAG_SYSTEM_REQUIRED |
0x1000 |
|
TASK_FLAG_RUN_ONLY_IF_LOGGED_ON |
0x2000 |
|
Nom Symbolique |
Valeur |
Description |
SCHED_S_TASK_NOT_SCHEDULED |
0x00041305 |
One or more of the properties that are needed to run this work item on a schedule have not been set. |
SCHED_S_TASK_RUNNING |
0x00041301 |
The work item is currently running. |
SCHED_S_TASK_READY |
0x00041300 |
The work item is ready to run at its next scheduled time. |