Jump to content

Auto Shutdown on a schedule


ross549

Recommended Posts

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

Link to comment
Share on other sites

Guest LilBambi

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.
Link to comment
Share on other sites

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.
Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...