Solved

Vista Task Scheduler will not run shutdown.exe

Posted on 2008-10-23
2
1,092 Views
Last Modified: 2012-05-05
Task Scheduler (ts from here on out) will not run the shutdown.exe command. Shutdown.exe and all tags work fine from command line. Set permissions on shutdown.exe to allow everyone full permission. Tried domain and local PC admin rights on the task. When using just 'shutdown', ts says it has completed the task, but no shutdown occurs. When using tags such as logoff, /L, ts gives the following error: 0x1. Following options are selected in the task setup:
Run whether user is logged in or not
Run with highest privileges
Allow task to be run on demand
No 'Conditions' are applied

I tested ts with a task of cmd. It opened a window just fine. I have tried using multiple logins, multiple permission sets. I simply will not run the shutdown.exe command from the Task Scheduler.
0
Comment
Question by:schendels
2 Comments
 
LVL 7

Accepted Solution

by:
knightfox earned 250 total points
ID: 22791316
hey ya,
can you confirm if you have used the following method?

http://www.thespinningdonut.com/how-to-automatically-shut-down-your-windows-vista-computer/

/Fox
0
 

Author Comment

by:schendels
ID: 22796183
Oddly, I had not tried the /s or /r, which appear to work. I Googled for hours and couldn't find a helpful article like yours.
My goal is to log my kids off at a certain time each night. One computer accepts the 'force loggoff when logon hours expire' from the server, but my other kid's won't. This is the one I'm trying to get to logoff. So I can use the restart tag. But I'll put up another 200 points if you can help with why the /L tag won't work. Let me know, otherwise I'll give you the 250.
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hi All Just a quick one for everybody. I was recently looking into setting the default User Account Picture for all my vista clients within the network but on closer inspection the group policy setting only allows you to set the default pictur…
The Service applet starts in Extended Mode by Default, with a taskpad on the left of the services pane. This view mode was introduced in XP. As I find it not very usefull, I like to use the Standard view as default, and without the Console tree. …
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question