Task scheduling : error 0x80070005: Access denied
Hi,
I encountered a problem with the Task scheduler with Windows 2003 standart
edition.
I'll want to make a scheduled task that launch a .bat file. The .bat file
works great (tested in command prompt).
I assign my save user to do this task. When I have an interactive session
opened with my save user, and then I launch the task manually, it work. But
if I close my session, the task does not launch, and I found this error ine
the log :
"backup.job" (backup.bat) **ERROR**
0x80070005: Access is denied.
Try using the Task page Browse button to locate application.
My save user have full ntfs permission on both .bat and .job directory.
Please need help :)
PS/ sorry for my poor English :p
Re: Task scheduling : error 0x80070005: Access denied
Your English is just fine. Remember that if it involves network resources,
make sure the user account has permissions to the resources and also use UNC
paths as mapped drives won't exist when no one is logged on. Scheduled
Tasks|Advanced|View Log may provide some details.
--
Regards,
Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect
"François Miermont" wrote:
| Hi,
|
|
| I encountered a problem with the Task scheduler with Windows 2003 standart
| edition.
|
| I'll want to make a scheduled task that launch a .bat file. The .bat file
| works great (tested in command prompt).
| I assign my save user to do this task. When I have an interactive session
| opened with my save user, and then I launch the task manually, it work.
But
| if I close my session, the task does not launch, and I found this error
ine
| the log :
| "backup.job" (backup.bat) **ERROR**
| 0x80070005: Access is denied.
| Try using the Task page Browse button to locate application.
|
| My save user have full ntfs permission on both .bat and .job directory.
|
| Please need help :)
|
| PS/ sorry for my poor English :p
Re: Task scheduling : error 0x80070005: Access denied
Your English is just fine. Remember that if it involves network resources,
make sure the user account has permissions to the resources and also use UNC
paths as mapped drives won't exist when no one is logged on. Scheduled
Tasks|Advanced|View Log may provide some details.
--
Regards,
Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect
"François Miermont" wrote:
| Hi,
|
|
| I encountered a problem with the Task scheduler with Windows 2003 standart
| edition.
|
| I'll want to make a scheduled task that launch a .bat file. The .bat file
| works great (tested in command prompt).
| I assign my save user to do this task. When I have an interactive session
| opened with my save user, and then I launch the task manually, it work.
But
| if I close my session, the task does not launch, and I found this error
ine
| the log :
| "backup.job" (backup.bat) **ERROR**
| 0x80070005: Access is denied.
| Try using the Task page Browse button to locate application.
|
| My save user have full ntfs permission on both .bat and .job directory.
|
| Please need help :)
|
| PS/ sorry for my poor English :p
Re: Task scheduling : error 0x80070005: Access denied
Thx for your interest !
The error log that I gave before was in the Scheduled Task/Advanced/View Log
file.
I also tested the task using the administrator user, with the interactive
session closed. It just work fine !
Seems to be a permission problem, but I cant found where :-(
"Dave Patrick" wrote:
> Your English is just fine. Remember that if it involves network resources,
> make sure the user account has permissions to the resources and also use UNC
> paths as mapped drives won't exist when no one is logged on. Scheduled
> Tasks|Advanced|View Log may provide some details.
>
>
> --
> Regards,
>
> Dave Patrick ....Please no email replies - reply in newsgroup.
> Microsoft Certified Professional
> Microsoft MVP [Windows]
> http://www.microsoft.com/protect
>
> "François Miermont" wrote:
> | Hi,
> |
> |
> | I encountered a problem with the Task scheduler with Windows 2003 standart
> | edition.
> |
> | I'll want to make a scheduled task that launch a .bat file. The .bat file
> | works great (tested in command prompt).
> | I assign my save user to do this task. When I have an interactive session
> | opened with my save user, and then I launch the task manually, it work.
> But
> | if I close my session, the task does not launch, and I found this error
> ine
> | the log :
> | "backup.job" (backup.bat) **ERROR**
> | 0x80070005: Access is denied.
> | Try using the Task page Browse button to locate application.
> |
> | My save user have full ntfs permission on both .bat and .job directory.
> |
> | Please need help :)
> |
> | PS/ sorry for my poor English :p
>
>
>
Re: Task scheduling : error 0x80070005: Access denied
Thx for your interest !
The error log that I gave before was in the Scheduled Task/Advanced/View Log
file.
I also tested the task using the administrator user, with the interactive
session closed. It just work fine !
Seems to be a permission problem, but I cant found where :-(
"Dave Patrick" wrote:
> Your English is just fine. Remember that if it involves network resources,
> make sure the user account has permissions to the resources and also use UNC
> paths as mapped drives won't exist when no one is logged on. Scheduled
> Tasks|Advanced|View Log may provide some details.
>
>
> --
> Regards,
>
> Dave Patrick ....Please no email replies - reply in newsgroup.
> Microsoft Certified Professional
> Microsoft MVP [Windows]
> http://www.microsoft.com/protect
>
> "François Miermont" wrote:
> | Hi,
> |
> |
> | I encountered a problem with the Task scheduler with Windows 2003 standart
> | edition.
> |
> | I'll want to make a scheduled task that launch a .bat file. The .bat file
> | works great (tested in command prompt).
> | I assign my save user to do this task. When I have an interactive session
> | opened with my save user, and then I launch the task manually, it work.
> But
> | if I close my session, the task does not launch, and I found this error
> ine
> | the log :
> | "backup.job" (backup.bat) **ERROR**
> | 0x80070005: Access is denied.
> | Try using the Task page Browse button to locate application.
> |
> | My save user have full ntfs permission on both .bat and .job directory.
> |
> | Please need help :)
> |
> | PS/ sorry for my poor English :p
>
>
>
Re: Task scheduling : error 0x80070005: Access denied
We're clueless without seeing the contents of backup.bat
--
Regards,
Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect
"François Miermont" wrote:
| Thx for your interest !
|
| The error log that I gave before was in the Scheduled Task/Advanced/View
Log
| file.
|
| I also tested the task using the administrator user, with the interactive
| session closed. It just work fine !
|
| Seems to be a permission problem, but I cant found where :-(
Re: Task scheduling : error 0x80070005: Access denied
We're clueless without seeing the contents of backup.bat
--
Regards,
Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect
"François Miermont" wrote:
| Thx for your interest !
|
| The error log that I gave before was in the Scheduled Task/Advanced/View
Log
| file.
|
| I also tested the task using the administrator user, with the interactive
| session closed. It just work fine !
|
| Seems to be a permission problem, but I cant found where :-(
Re: Task scheduling : error 0x80070005: Access denied
Okay, here it is :
robocopy E:\Projets \\Cypher\BackupServiceDev\ /MIR /R:0 > .\Backuplog.txt
MyMail thomas .\Backuplog.txt
"Dave Patrick" wrote:
> We're clueless without seeing the contents of backup.bat
>
> --
> Regards,
>
> Dave Patrick ....Please no email replies - reply in newsgroup.
> Microsoft Certified Professional
> Microsoft MVP [Windows]
> http://www.microsoft.com/protect
>
> "François Miermont" wrote:
> | Thx for your interest !
> |
> | The error log that I gave before was in the Scheduled Task/Advanced/View
> Log
> | file.
> |
> | I also tested the task using the administrator user, with the interactive
> | session closed. It just work fine !
> |
> | Seems to be a permission problem, but I cant found where :-(
>
>
>
Re: Task scheduling : error 0x80070005: Access denied
Okay, here it is :
robocopy E:\Projets \\Cypher\BackupServiceDev\ /MIR /R:0 > .\Backuplog.txt
MyMail thomas .\Backuplog.txt
"Dave Patrick" wrote:
> We're clueless without seeing the contents of backup.bat
>
> --
> Regards,
>
> Dave Patrick ....Please no email replies - reply in newsgroup.
> Microsoft Certified Professional
> Microsoft MVP [Windows]
> http://www.microsoft.com/protect
>
> "François Miermont" wrote:
> | Thx for your interest !
> |
> | The error log that I gave before was in the Scheduled Task/Advanced/View
> Log
> | file.
> |
> | I also tested the task using the administrator user, with the interactive
> | session closed. It just work fine !
> |
> | Seems to be a permission problem, but I cant found where :-(
>
>
>
Re: Task scheduling : error 0x80070005: Access denied
Does your user have permissions to write to \\Cypher\BackupServiceDev\ ? Is
E:\ a local drive? If not try using a UNC path for it. If so you might try
something simple to help determine the problem such as xcopy one file from
source to destination.
--
Regards,
Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect
"François Miermont" wrote:
| Okay, here it is :
|
| robocopy E:\Projets \\Cypher\BackupServiceDev\ /MIR /R:0 > .\Backuplog.txt
| MyMail thomas .\Backuplog.txt
Re: Task scheduling : error 0x80070005: Access denied
Does your user have permissions to write to \\Cypher\BackupServiceDev\ ? Is
E:\ a local drive? If not try using a UNC path for it. If so you might try
something simple to help determine the problem such as xcopy one file from
source to destination.
--
Regards,
Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect
"François Miermont" wrote:
| Okay, here it is :
|
| robocopy E:\Projets \\Cypher\BackupServiceDev\ /MIR /R:0 > .\Backuplog.txt
| MyMail thomas .\Backuplog.txt
Re: Task scheduling : error 0x80070005: Access denied
Yes, my user have permission to write to Cypher, and E: is a logical drive.
I also try to a simple copy, but the problem is that the task did not
execute at all. The problem appears before that the .bat is launched.
"Dave Patrick" wrote:
> Does your user have permissions to write to \\Cypher\BackupServiceDev\ ? Is
> E:\ a local drive? If not try using a UNC path for it. If so you might try
> something simple to help determine the problem such as xcopy one file from
> source to destination.
>
> --
> Regards,
>
> Dave Patrick ....Please no email replies - reply in newsgroup.
> Microsoft Certified Professional
> Microsoft MVP [Windows]
> http://www.microsoft.com/protect
>
> "François Miermont" wrote:
> | Okay, here it is :
> |
> | robocopy E:\Projets \\Cypher\BackupServiceDev\ /MIR /R:0 > .\Backuplog.txt
> | MyMail thomas .\Backuplog.txt
>
>
>
Re: Task scheduling : error 0x80070005: Access denied
Yes, my user have permission to write to Cypher, and E: is a logical drive.
I also try to a simple copy, but the problem is that the task did not
execute at all. The problem appears before that the .bat is launched.
"Dave Patrick" wrote:
> Does your user have permissions to write to \\Cypher\BackupServiceDev\ ? Is
> E:\ a local drive? If not try using a UNC path for it. If so you might try
> something simple to help determine the problem such as xcopy one file from
> source to destination.
>
> --
> Regards,
>
> Dave Patrick ....Please no email replies - reply in newsgroup.
> Microsoft Certified Professional
> Microsoft MVP [Windows]
> http://www.microsoft.com/protect
>
> "François Miermont" wrote:
> | Okay, here it is :
> |
> | robocopy E:\Projets \\Cypher\BackupServiceDev\ /MIR /R:0 > .\Backuplog.txt
> | MyMail thomas .\Backuplog.txt
>
>
>
Re: Task scheduling : error 0x80070005: Access denied
And also, if I open an interactive session with my save user, and then go to
Scheduled task|File|Execute, the .bat works !
The problem is, I think, a problem of permission to launch a .bat as a task
(or service ?).
I also look at the GPO, but my save user have rights "Open a session as a
service" and "Open a session as a Task".
"Dave Patrick" wrote:
> Does your user have permissions to write to \\Cypher\BackupServiceDev\ ? Is
> E:\ a local drive? If not try using a UNC path for it. If so you might try
> something simple to help determine the problem such as xcopy one file from
> source to destination.
>
> --
> Regards,
>
> Dave Patrick ....Please no email replies - reply in newsgroup.
> Microsoft Certified Professional
> Microsoft MVP [Windows]
> http://www.microsoft.com/protect
>
> "François Miermont" wrote:
> | Okay, here it is :
> |
> | robocopy E:\Projets \\Cypher\BackupServiceDev\ /MIR /R:0 > .\Backuplog.txt
> | MyMail thomas .\Backuplog.txt
>
>
>
Re: Task scheduling : error 0x80070005: Access denied
And also, if I open an interactive session with my save user, and then go to
Scheduled task|File|Execute, the .bat works !
The problem is, I think, a problem of permission to launch a .bat as a task
(or service ?).
I also look at the GPO, but my save user have rights "Open a session as a
service" and "Open a session as a Task".
"Dave Patrick" wrote:
> Does your user have permissions to write to \\Cypher\BackupServiceDev\ ? Is
> E:\ a local drive? If not try using a UNC path for it. If so you might try
> something simple to help determine the problem such as xcopy one file from
> source to destination.
>
> --
> Regards,
>
> Dave Patrick ....Please no email replies - reply in newsgroup.
> Microsoft Certified Professional
> Microsoft MVP [Windows]
> http://www.microsoft.com/protect
>
> "François Miermont" wrote:
> | Okay, here it is :
> |
> | robocopy E:\Projets \\Cypher\BackupServiceDev\ /MIR /R:0 > .\Backuplog.txt
> | MyMail thomas .\Backuplog.txt
>
>
>