Scheduled task giving exit code 10d1

G

Guest

Hi All

I have a scheduled task that takes backup of some local folders, that is not
working properly, weeks ago it used to work fine,
but we decided to change the local administrator's password (the task was
originally created using this user).

After that change, the task started failing, I updated the task with the new
password, but the task is not actually doing the backup
(it doesn't generate anything if I go to NTBACKUP -> Tools -> Report).

Also if I go to the log, the task is giving the following exit code:


"backup_rrhh_Lunes.job" (backup_rrhh_Lunes.bat)
Started 11/1/2005 3:30:01 AM
"backup_rrhh_Lunes.job" (backup_rrhh_Lunes.bat)
Finished 11/1/2005 3:30:19 AM
Result: The task completed with an exit code of (10d1).

Also I saw this error at the Event Viewer:

Event Type: Error
Event Source: Userenv
Event Category: None
Event ID: 1000
Date: 11/1/2005
Time: 3:31:21 AM
User: NT AUTHORITY\SYSTEM
Computer: S_RECHUM
Description:
Windows cannot unload your registry file. If you have a roaming profile,
your settings are not replicated. Contact your administrator.

DETAIL - Access is denied. , Build number ((2195)).




Does anybody have idea what could be happening ? Does this happened
to somebody ?

What could mean that exit code ?

Any help will be really appreciatted

Guillermo
 
P

Pegasus \(MVP\)

Guillermo said:
Hi All

I have a scheduled task that takes backup of some local folders, that is not
working properly, weeks ago it used to work fine,
but we decided to change the local administrator's password (the task was
originally created using this user).

After that change, the task started failing, I updated the task with the new
password, but the task is not actually doing the backup
(it doesn't generate anything if I go to NTBACKUP -> Tools -> Report).

Also if I go to the log, the task is giving the following exit code:


"backup_rrhh_Lunes.job" (backup_rrhh_Lunes.bat)
Started 11/1/2005 3:30:01 AM
"backup_rrhh_Lunes.job" (backup_rrhh_Lunes.bat)
Finished 11/1/2005 3:30:19 AM
Result: The task completed with an exit code of (10d1).

Also I saw this error at the Event Viewer:

Event Type: Error
Event Source: Userenv
Event Category: None
Event ID: 1000
Date: 11/1/2005
Time: 3:31:21 AM
User: NT AUTHORITY\SYSTEM
Computer: S_RECHUM
Description:
Windows cannot unload your registry file. If you have a roaming profile,
your settings are not replicated. Contact your administrator.

DETAIL - Access is denied. , Build number ((2195)).




Does anybody have idea what could be happening ? Does this happened
to somebody ?

What could mean that exit code ?

Any help will be really appreciatted

Guillermo

The code is generated by ntbackup.exe, not by the Task Scheduler.
The usual remedy is to start a foreground session under the
account used for the scheduled task, then run the same
command as the one in the scheduled task. This will make
all problems visible.
 
G

Guest

Hi Pegasus

I got the tasks to work but I had to modify the taks properties and re-type
the password for the user I used to create the tasks, again and again ....
but now the problem has changed a little, now the tasks are not running at
all.

I followed your suggestion (running the task interactively while I was
logged on as the administrator) and those are the errors I'm getting:

"Error opening the log file C:\Documents and Settings\Administrator\Local
Settings\Application Data\Windows NT\NTBackup\data\backup03.log"

Has this happened to anibody ??

Thanks
 
P

Pegasus \(MVP\)

Guillermo said:
Hi Pegasus

I got the tasks to work but I had to modify the taks properties and re-type
the password for the user I used to create the tasks, again and again ....
but now the problem has changed a little, now the tasks are not running at
all.

I followed your suggestion (running the task interactively while I was
logged on as the administrator) and those are the errors I'm getting:

"Error opening the log file C:\Documents and Settings\Administrator\Local
Settings\Application Data\Windows NT\NTBackup\data\backup03.log"

Has this happened to anibody ??

Thanks

Sounds as if the task does not have access to the file
C:\Documents and Settings\Administrator\Local
Settings\Application Data\Windows NT\NTBackup\data\backup03.log

This is easily verified by running ntbackup.exe in an tightly
controlled environment, i.e. in this batch file:

@echo off
echo %date% %time% Start of task > c:\test.log
echo User=%UserName%, Path=%path% >> c:\test.log
echo %date% %time% 1>C:\Documents and Settings\Administrator\Local
Settings\Application Data\Windows NT\NTBackup\data\backup13.log
ntbackup @.. /.. /.. /.. 1>>c:\test.log 2>c:\test.err
echo %date% %time% End of task >> c:\test.log

Run the batch file from the Command Prompt and check
the files test.log, test.err and backup13.log. After this,
schedule the batch file to run under the Task Scheduler
and check those same files again. The results should
be revealing.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top