Solved

Vista Task Scheduler will not run shutdown.exe

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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Suggested Solutions

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 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…
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…

828 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