Go Back   TechArena Community > Technical Support > Computer Help > Windows Server > Windows Server Help
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Task scheduling : error 0x80070005: Access denied

Windows Server Help


Reply
 
Thread Tools Search this Thread
  #1  
Old 21-03-2005
François Miermont
 
Posts: n/a
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

Reply With Quote
  #2  
Old 21-03-2005
Dave Patrick
 
Posts: n/a
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


Reply With Quote
  #3  
Old 21-03-2005
Dave Patrick
 
Posts: n/a
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


Reply With Quote
  #4  
Old 21-03-2005
François Miermont
 
Posts: n/a
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
>
>
>

Reply With Quote
  #5  
Old 21-03-2005
François Miermont
 
Posts: n/a
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
>
>
>

Reply With Quote
  #6  
Old 21-03-2005
Dave Patrick
 
Posts: n/a
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 :-(


Reply With Quote
  #7  
Old 21-03-2005
Dave Patrick
 
Posts: n/a
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 :-(


Reply With Quote
  #8  
Old 21-03-2005
François Miermont
 
Posts: n/a
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 :-(
>
>
>

Reply With Quote
  #9  
Old 21-03-2005
François Miermont
 
Posts: n/a
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 :-(
>
>
>

Reply With Quote
  #10  
Old 21-03-2005
Dave Patrick
 
Posts: n/a
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


Reply With Quote
  #11  
Old 21-03-2005
Dave Patrick
 
Posts: n/a
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


Reply With Quote
  #12  
Old 22-03-2005
François Miermont
 
Posts: n/a
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
>
>
>

Reply With Quote
  #13  
Old 22-03-2005
François Miermont
 
Posts: n/a
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
>
>
>

Reply With Quote
  #14  
Old 22-03-2005
François Miermont
 
Posts: n/a
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
>
>
>

Reply With Quote
  #15  
Old 22-03-2005
François Miermont
 
Posts: n/a
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
>
>
>

Reply With Quote
Reply

  TechArena Community > Technical Support > Computer Help > Windows Server > Windows Server Help
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Task scheduling : error 0x80070005: Access denied"
Thread Thread Starter Forum Replies Last Post
Windows Scheduled Task: Unable to start task. 0x80070005: Access is denied. BCU_AJones Windows Software 3 17-01-2014 10:37 AM
Error 0x80070005 access is denied PARRISH Windows Vista Network 2 14-08-2009 07:05 PM
Access denied in Backup error Code 0x80070005 JustinG69 Vista Help 3 24-06-2009 11:05 AM
Error: 0x80070005 Access is denied Backup failed. lemmy Vista Help 6 31-07-2007 11:22 PM
XP Home Task Scheduler Error 0x80070005: Access is denied Hayes II XP Hardware 1 24-03-2007 10:18 PM


All times are GMT +5.5. The time now is 11:24 AM.