Specialty Forums
Security and Virus
General Hardware
CPUs/Overclocking
Networking
Digital Photo/Video
Office Software
PC Gaming
Console Gaming
Programming
Database
Web Development
Digital Home

General Forums
Windows XP
Windows Vista
Windows 95/98
Windows Me
Windows NT
Windows 2000
Win Server 2008
Win Server 2003
Windows 3.1
Linux
PDAs
BeOS
Novell Netware
OpenVMS
Solaris
Disk Op. System
Unix
Mac
OS/2

Drivers
Driver Scan
Driver Forum

Software
Automatic Updates

BIOS Updates

My Computing.Net

Solution Center

Free IT eBook

Howtos

Site Search

Message Find

RSS Feeds

Install Guides

Data Recovery

About

Home
Reply to Message Icon Go to Main Page Icon

reboot PC daily at 08:00

Original Message
Name: malkaabi
Date: August 13, 2007 at 02:08:36 Pacific
Subject: reboot PC daily at 08:00
OS: winxp
CPU/Ram: intel
Comment:
Dear all
I want reboot the PC daily at 08:00 by batch file.
this command below just to reboot the PC

echo off
shutdown.exe -r -t 00

is there additional command to reboot PC daily at 08:00

Thanks



Report Offensive Message For Removal


Response Number 1
Name: Razor2.3
Date: August 13, 2007 at 02:22:24 Pacific
Subject: reboot PC daily at 08:00
Reply: (edit)
schtasks /create /sc daily /tn restart /st 08:00:00 /tr "shutdown.exe -r -t 0 -f"

No batch file required.



Report Offensive Follow Up For Removal

Response Number 2
Name: malkaabi
Date: August 13, 2007 at 05:00:31 Pacific
Subject: reboot PC daily at 08:00
Reply: (edit)
I don't know what is u mean about "No batch file required"

this example doesn't work as a batch file

schtasks /create /sc daily /tn restart /st 08:00:00 /tr "shutdown.exe -r -t 0 -f"

but after add
echo off
in the first line then double click on a batch it work.
I was mean I want to do this task every day morning at 08:00 am automatically without double click on the file or make schedule from system tools.


Report Offensive Follow Up For Removal

Response Number 3
Name: Curt R
Date: August 13, 2007 at 08:58:47 Pacific
Subject: reboot PC daily at 08:00
Reply: (edit)
If I'm not mistaken, the following:

schtasks /create /sc daily /tn restart /st 08:00:00 /tr "shutdown.exe -r -t 0 -f"

is to be run from the command line and will create the scheduled task to reboot your PC at the specified time each day.


Report Offensive Follow Up For Removal

Response Number 4
Name: FishMonger
Date: August 13, 2007 at 11:24:32 Pacific
Subject: reboot PC daily at 08:00
Reply: (edit)
Why do you feel you need to reboot your computer every day?

Report Offensive Follow Up For Removal

Response Number 5
Name: malkaabi
Date: August 13, 2007 at 13:24:12 Pacific
Subject: reboot PC daily at 08:00
Reply: (edit)
I have many PC's connected through a network.For specific reason I want to reboot theses PC's every day at 08:00 morning so if there are any way or idea to reboot the PC by batch file it is will great.


Report Offensive Follow Up For Removal


Response Number 6
Name: Razor2.3
Date: August 13, 2007 at 17:14:50 Pacific
Subject: reboot PC daily at 08:00
Reply: (edit)
What, like this?
schtasks /create /sc daily /tn restart /st 08:00:00 /tr "cmd /c for /f %a in ('net view') do shutdown.exe -r -t 0 -f -m %a"
(Warning: Probably won't work if the workstation's locked.)

Report Offensive Follow Up For Removal

Response Number 7
Name: malkaabi
Date: August 13, 2007 at 21:17:54 Pacific
Subject: reboot PC daily at 08:00
Reply: (edit)
it's not work!

Report Offensive Follow Up For Removal

Response Number 8
Name: FishMonger
Date: August 13, 2007 at 21:51:44 Pacific
Subject: reboot PC daily at 08:00
Reply: (edit)
http://support.microsoft.com/kb/308569
http://www.microsoft.com/technet/pr...

Report Offensive Follow Up For Removal

Response Number 9
Name: Razor2.3
Date: August 13, 2007 at 22:12:29 Pacific
Subject: reboot PC daily at 08:00
Reply: (edit)
Well, in order for the reboot to work, you must run the task as someone who has the authority to shut the PC's down.


Report Offensive Follow Up For Removal

Response Number 10
Name: malkaabi
Date: August 13, 2007 at 23:34:50 Pacific
Subject: reboot PC daily at 08:00
Reply: (edit)
I know this idea FishMonger but I want a batch file to do this task automatically every day morning at 08:00 am.

Report Offensive Follow Up For Removal

Response Number 11
Name: FishMonger
Date: August 14, 2007 at 00:15:38 Pacific
Subject: reboot PC daily at 08:00
Reply: (edit)
A batch file by itself can't automatically execute itself.

Microsoft has chosen to design a specific feature in their OS called the Task Scheduler to accomplish what you want.

Do you have a valid reason for not wanting to use the standardized method to automatically execute your batch file?


Report Offensive Follow Up For Removal

Response Number 12
Name: malkaabi
Date: August 14, 2007 at 01:11:46 Pacific
Subject: reboot PC daily at 08:00
Reply: (edit)
Yes, we have many PC's so for that reason I don't want to doing this task through schedule.
thanks

FishMonger



Report Offensive Follow Up For Removal

Response Number 13
Name: Curt R
Date: August 14, 2007 at 07:18:48 Pacific
Subject: reboot PC daily at 08:00
Reply: (edit)
You basically have 3 options. Schedule the task as has been outlined to you (remember, the task itself has to be created by someone with the proper credentials). Manually reboot each PC every morning, or finally, never reboot any of them.

I don't understand your objection to using the command line to schedule the task. Even if we provided you with a batchfile, you'd STILL have to run around and schedule it on each individual PC! There is no magic application out there that you can schedule once on a server (or PC) and have it reboot all PC's in your network.......period!

I'm sorry but, you've been given solid advice on a simple way to accomplish your goal (which in and of itself makes no sense. I never shut my work PC off without good reason and it's likley been months since it was rebooted. Rebooting in and of itself is useless unless you've misconfigured something or are running a lousy app that eats up memory and won't release it when it's done. I rarely, if ever reboot my home PC's either. The one that's my firewall hasn't been reset or shutdown in months because rebooting is unnecessary) if you choose to grasp at straws that's not our problem. We've tried to help you to our own frustration.

Good luck to you!


Report Offensive Follow Up For Removal

Response Number 14
Name: malkaabi
Date: August 19, 2007 at 21:30:02 Pacific
Subject: reboot PC daily at 08:00
Reply: (edit)
I agree with u but I was Know if there way to do this in the network coz I have many PC's connected through wireless but every morning some of PC dosen't connected through the Net. but after restart the PC's the connection back again , so I but some of these PC's from power and option never standby ,so now I think the problem resloved.
thanks

Report Offensive Follow Up For Removal

Response Number 15
Name: Jennifer SUMN
Date: September 29, 2007 at 18:31:17 Pacific
Subject: reboot PC daily at 08:00
Reply: (edit)
Just out of curiosity, what happens if a user is logged into the computer and, God forbid, actually working at 0800? Won't he/she get just a tiny bit upset if the computer suddenly reboots when the he/she is in the middle of working on something important? How are you going to explain that to him/her if data is lost?

Life's more painless for the brainless.


Report Offensive Follow Up For Removal



Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: reboot PC daily at 08:00

Comments:

 
  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 


Data Recovery Software




CPU and Graphics Upgrade Questions

VIRUS ALERT in Taskbar, HELP!

DSHUB24 Connection Problems

need help with dsl and dial up

novel 3.12


The information on Computing.Net is the opinions of its users. Such opinions may not be accurate and they are to be used at your own risk. Computing.Net cannot verify the validity of the statements made on this site. Computing.Net and Computing.Net, LLC hereby disclaim all responsibility and liability for the content of Computing.Net and its accuracy.
PLEASE READ THE FULL DISCLAIMER AND LEGAL TERMS BY CLICKING HERE

All content ©1996-2007 Computing.Net, LLC