2

I'm attempting to use a scheduled task to shut down my win XP PC. I get the error: Task Scheduler Error 0x80070005: Access is denied. I'm logged in with administrative privileges but am unsure why the task isn't starting or won't work. I don't know what I'm doing wrong. Can anyone give me some pointers please?

Incidentally, as a work around, I have managed to get around this whole thing with a batch file on a timer.

2
  • Have you tried using Task Scheduler to start the batch file? i.e. if your batch file shuts down the PC, then let TS run the batch file at a certain time. Let TS use the highest privileges too.
    – Kevdog777
    Commented May 22, 2013 at 8:48
  • I've just tried as a test, but it's the same as before. "0x80070005: Access is denied. You do not have permission to perform the requested task"
    – Ghoul Fool
    Commented May 22, 2013 at 9:02

1 Answer 1

3

OK, I have just tried this myself, and it has worked. So just checking if you have the correct settings, here is a screenshot of my settings. Note: I am using Windows Vista, but shouldn't make any difference.

General Tab: Task Schedule [General]

Your batch file (for Windows XP) will only need the following line of code:

shutdown.exe -s -t 00

3
  • 1
    There is no Need to write a Batch file, you can call shutdown.exe directly with the Parameters. Commented May 22, 2013 at 10:30
  • 1
    That works fine. The trick was to tick the "run only when user is logged on" box. Thank you very much for your help.
    – Ghoul Fool
    Commented May 22, 2013 at 10:31
  • Oh ok, I was just going on with what was asked in the question. "I have managed to get around this whole thing with a batch file on a timer"
    – Kevdog777
    Commented May 22, 2013 at 10:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .