Solved

Vista Task Scheduler will not run shutdown.exe

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
I'm a big fan of Windows' offline folder caching and have used it on my laptops for over a decade.  One thing I don't like about it, however, is how difficult Microsoft has made it for the cache to be moved out of the Windows folder.  Here's how to …
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
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…

896 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

15 Experts available now in Live!

Get 1:1 Help Now