Solved

Vista Task Scheduler will not run shutdown.exe

Posted on 2008-10-23
2
1,078 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

The main issue when installing Vista and XP in dual boot is when you have to reinstall any of the two when something fails, let's say a hard disk failure, a lost partition, virus, etc. What commonly happens is that you lose all your hard work config…
There are many reasons a PC runs slower than when it was new, ranging from malicious software intended to mess things up to simple general Windows use.  Your PC performance may slowly degrade over time without you noticing but when you buy a PC from…
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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

746 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now