BleepingComputer.com: Auto schedule shutdown and restart after 8 hours

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Auto schedule shutdown and restart after 8 hours Auto shutdown schedule for PC and Servers

#1 User is offline   FutureZone 

  • New Member
  • Pip
  • Find Topics
  • Group: Members
  • Posts: 1
  • Joined: 13-October 10

Posted 13 October 2010 - 10:18 PM

Hello,

Does anyone know any tips on writing batch file or 3rd party freeware for auto shcedule to shutdown at night and restart at morning?

Because the office building is very often having main power maintenance and all PCs and servers are required to shutdown at odd hours in the night.

What I have done so far was @ECHO OFF shutdown.exe -r -t and it was only shutdown and restart straight away. What I wanted was shutdown at 23:00PM and

restart at 07:30AM next morning. Is it possible?

Thanks....

#2 User is offline   Andrew 

  • Bleepin' Night Watchman
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 7,423
  • Joined: 05-December 05
  • Gender:Not Telling
  • Location:Right behind you

Posted 14 October 2010 - 12:30 PM

You can use the Task Scheduler in Windows (or cron in Linux and Mac OS) to have a command executed at a certain time each day.

Simply set the Run: parameter to something like this:
shutdown /s /t 15 /c "Shutting Down!" /f


There isn't, to my knowledge, any way to cause the computer to start itself unless such functionality is supported in the BIOS setup. Some computers' BIOS have options to turn the computer on at a certain time, though this option is relatively rare. Another, more common, BIOS option is "Wake on LAN." Wak on LAN allows the computer to be started up by sending it a special signal over it's ethernet connection, though this requires another computer on the LAN to already be up and running from which to send this signal.

This post has been edited by Andrew: 14 October 2010 - 12:31 PM

Help us help you. If HelpBot replies, you MUST follow step 1 in its reply so we know you need help.
Posted Image
Boredom Software Stop Highlighting Things

#3 User is offline   trappermike 

  • Member
  • PipPip
  • Find Topics
  • Group: Members
  • Posts: 64
  • Joined: 15-July 10

Posted 15 January 2011 - 10:32 AM

I found a cute little tool that does that,shuts my computer down at a pre-defined time.
It's called Auto-Off,by Little Earth Solutions. It's a tiny program and very simply does the job.

#4 User is offline   shadowsai 

  • Member
  • PipPip
  • Find Topics
  • Group: Members
  • Posts: 20
  • Joined: 11-January 11

Posted 23 January 2011 - 01:01 AM

I'm pretty sure it's not possible to have your system startup without using BIOS settings. Having it shutdown is an easy matter however. Try the below batch file:
@echo off 
title Time2ShutDown
echo Enter Time You Want Your Computer to Turn Off (Use 24 hr format, eg. 21:35) 
set /p stime= 
cls 
at %stime% ""shutdown -s -t 00"" >nul 
echo Your computer Will Auto Shutdown At %stime% 
echo Press Any Key To Exit 
pause >nul 
exit


Just select all that and save it as a batch file. No need for changes necessary.
shadowsai

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users