Article ID: 867466 - Last Review: November 30, 2007 - Revision: 1.5 "Access is denied" error message when you run a batch job on a Windows Server 2003-based computerOn This PageSYMPTOMSWhen you run a batch job that runs under the context of a regular user account on a Microsoft Windows Server 2003-based computer, the script may not run. If you run the batch job by using the Scheduled Tasks feature, the following error message may be logged in the Scheduled Tasks log file (Schedlgu.txt): 0x80070005: Access is denied. Access Denied (Error 5) CAUSEThis issue occurs if all the following conditions are true:
RESOLUTIONTo resolve this issue, use either of the following methods. Method 1Grant the Cmd.exe program Read and Execute permissions for the user account that the batch job runs under. To do this, follow these steps:
Method 2Grant Read and Execute permissions for the Cmd.exe file to the Batch group. This permits all batch processes to run the command processor. To do this, follow these steps:
MORE INFORMATIONThe behavior that is described in this article is different from the default behavior of Microsoft Windows 2000 Server. By default, Windows 2000 Server grants Read permissions and Execute permissions to the Users group. For more information about implicit groups, visit the following Microsoft Web sites: http://technet.microsoft.com/en-us/library/bb726980.aspx
(http://technet.microsoft.com/en-us/library/bb726980.aspx)
http://technet.microsoft.com/en-us/library/Bb726982.aspx
(http://technet.microsoft.com/en-us/library/Bb726982.aspx)
APPLIES TO
| Other Resources Other Support Sites
CommunityGet Help NowArticle Translations
|

Back to the top
