Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question
    
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 May 22 '13 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 May 22 '13 at 9:02

1 Answer 1

up vote 3 down vote accepted

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

share|improve this answer
1  
There is no Need to write a Batch file, you can call shutdown.exe directly with the Parameters. –  Werner Henze May 22 '13 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 May 22 '13 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 May 22 '13 at 10:32

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.