SK0-004 · Question #452
Payroll checks are not printing. A job scheduled to run \\Payroll_File_Server\Checks\Print.cmd is failing with an "Access Denied" error message. Which of the following is the MOST likely cause of…
The correct answer is C. The file permissions on Print.cmd were changed. An 'Access Denied' error when running a scheduled script most directly indicates that the account running the job lacks the necessary file system permissions on that script.
Question
Payroll checks are not printing. A job scheduled to run \Payroll_File_Server\Checks\Print.cmd is failing with an "Access Denied" error message. Which of the following is the MOST likely cause of this issue?
Options
- AThe payroll application server is offline
- BThe checks share does not exist
- CThe file permissions on Print.cmd were changed
- DThe Print.cmd file content was modified
How the community answered
(59 responses)- A7% (4)
- B14% (8)
- C78% (46)
- D2% (1)
Why each option
An 'Access Denied' error when running a scheduled script most directly indicates that the account running the job lacks the necessary file system permissions on that script.
If the payroll application server were offline, the error would be a network connectivity or RPC failure, not an 'Access Denied' message.
A missing or deleted share would produce a 'network path not found' or 'path does not exist' error, not an 'Access Denied' error.
The 'Access Denied' error is an NTFS or share-level permission error, meaning the security context executing the scheduled job no longer has read or execute rights on Print.cmd. A change to the file's ACL - such as removing the service account or scheduled task identity from the allowed principals - would produce exactly this error. Restoring the correct permissions to the executing account would resolve the issue.
Modifying the content of Print.cmd would not produce an 'Access Denied' error - it would result in execution logic failures or incorrect output, not a permissions denial.
Concept tested: NTFS/share file permissions causing access denied errors
Source: https://learn.microsoft.com/en-us/windows/win32/secauthz/access-control-lists
Topics
Community Discussion
No community discussion yet for this question.