As per the comments in the accepted answer to this question, I'm having issues running a scheduled task which calls
shutdown.exe, even when the user is an administrator. I'm administrating someone else's machine using their main account, so I can't exactly change too much as they like things the way that they are.
What's really strange is that I can only make the task run if:
- The user is an administrator.
- They have defined a password.
For some strange reason unknown to me, not only does a user have to be an administrator, but they also must have a password on the account in order for the scheduled task to run. Otherwise, I get access denied errors and the task fails to run.
How can I make this work without having to force the user to define a password for their account?
Essentially, the remaining goal is to have the computer shut down (no matter who is or is not logged in) at 11pm every night.
I run into the following errors below when I try to set the task in the
Scheduled Tasks program:
An error has occurred while attempting to set task account information.
The specific error is:
0x8007005: Access is denied.
You do not have permission to perform the requested operation.
For the record, here's my security policy, you can see that my user has the permission to force shutdown and manually shutdown the computer: