ross549 Posted October 17, 2009 Share Posted October 17, 2009 OK,This is really starting to get annoying. I do not know what I am missing here. Everything should wrk as described below:I have a Dell Precision Workstation 470 that I am working on. There is a fresh install of XP installed, and it is fully up to date. The only software instaled is AVG, Open Office, and VLC.The machine has a BIOS feature to allow it to boot at a specified time. This is what i want to have happen:1. Machine boots at 0100. (via BIOS option)2. AVG runs scan at 0105. (built in scheduler)3. Disk Cleanup runs at 0125. (via scheduled Tasks)4. Defrag runs at 0145.(via scheduled tasks)5. Machine shuts down at 0200. (via scheduled tasks)Via logs, it is apparent that the scheduled tasks are running as expected. However, the machine is not shutting down. If I set the machine to shut down in a few minutes and reboot it to the login screen, it shuts down on schedule and on time.However, it does not shut down when it boots by itself in the early morning. I know the scheduled tasks are getting done on time, so I don't think that has anything to do with it.Anyone know where I could be setting this up wrong?Thanks!Adam Quote Link to comment Share on other sites More sharing options...
Webb Posted October 17, 2009 Share Posted October 17, 2009 What is your shutdown command?Have it run this. %windir%\system32\SHUTDOWN.exe -s -t 01 Which you could also run as a batch file. Quote Link to comment Share on other sites More sharing options...
Guest LilBambi Posted October 17, 2009 Share Posted October 17, 2009 Defrag might need a little more time too.Also, Defrag shouldn't be run more than once every 6-8 weeks. Daily would be over kill ... err actually hard drive early death.Web, hope that command works for it ... would be very easy to do. Quote Link to comment Share on other sites More sharing options...
ross549 Posted October 17, 2009 Author Share Posted October 17, 2009 The t flag sets the time before shutdown, right?In any case, it already shuts down in one minute via "shutdown -s," during controlled experiments, but not when unattended in the morning.I'll take the defrag out..... just trying to keep the machine in tip top shape automatically.Adam Quote Link to comment Share on other sites More sharing options...
Webb Posted October 17, 2009 Share Posted October 17, 2009 Shutdown.exe command line optionsShutdown.exe uses the following syntax:shutdown \\computername /l /a /r /t:xx "msg" /y /cYou can use the following switches with Shutdown.exe: \\computername: Use this switch to specify the remote computer to shut down. If you omit this parameter, the local computer name is used. /l (Note that this is a lowercase "L" character): Use this switch to shut down the local computer /a: Use this switch to quit a shutdown operation. You can do this only during the time-out period. If you use this switch, all other parameters are ignored. /r: Use this switch to restart the computer instead of fully shutting it down. /t:xx: Use this switch to specify the time (in seconds) after which the computer is shut down. The default is 20 seconds. "msg": Use this switch to specify a message during the shutdown process. The maximum number of characters that the message can contain is 127. /y: Use this switch to force a "yes" answer to all queries from the computer. /c: Use this switch quit all running programs. If you use this switch, Windows forces all programs that are running to quit. The option to save any data that may have changed is ignored. This can result in data loss in any programs for which data is not previously saved. Quote Link to comment Share on other sites More sharing options...
ross549 Posted October 17, 2009 Author Share Posted October 17, 2009 http://www.grc.com/wizmo/wizmo.htmAnother option... might do the trick! Quote Link to comment Share on other sites More sharing options...
Webb Posted October 17, 2009 Share Posted October 17, 2009 If you are looking into alternative task schedulers I have always hated the XP built in. I use Solway's Task Scheduler. Quote Link to comment Share on other sites More sharing options...
Guest LilBambi Posted October 17, 2009 Share Posted October 17, 2009 Steve Gibson is the best! Nice list of shutdown stops there Web. Quote Link to comment Share on other sites More sharing options...
Guest LilBambi Posted October 17, 2009 Share Posted October 17, 2009 Solway's looks like a nice option too! Quote Link to comment Share on other sites More sharing options...
Webb Posted October 17, 2009 Share Posted October 17, 2009 Solway's looks like a nice option too!I had way too much trouble with the built in Windows XP app - always telling me I didn't have permission, no visible evidence that it's running ... It was easier to disable it and use this one instead. Quote Link to comment Share on other sites More sharing options...
crp Posted October 27, 2009 Share Posted October 27, 2009 I heartily second the wizmo recommendation Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.