Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

scheduling to restart


  • Please log in to reply

#1
hulud

hulud

    Member

  • Member
  • PipPipPip
  • 268 posts
is there a way to set a scheduled task to restart the machine every day at 5am? i have looked for tit and not been able to find it... we keep having to restart the machine when i come in and the people off site depend on it for connectivity to the network, so i am hoping that i can set it to automatically restart at a given time as this usually seems to fix the problem.

thanks :tazz:
  • 0

Advertisements


#2
dsenette

dsenette

    Je suis Napoléon!

  • Administrator
  • 26,019 posts
  • MVP
you can create a batch file with the command

shutdown -r

and then schedule that batch file
  • 0

#3
hulud

hulud

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 268 posts
cool i saved "restart.bat" with just the command shutdown -r and scheduled it to run every day at 5am. that sound right? thanks for your help.
  • 0

#4
dsenette

dsenette

    Je suis Napoléon!

  • Administrator
  • 26,019 posts
  • MVP
i would test the batch file first...just double click it...or save it to your c: drive and do run restart.bat
  • 0

#5
hulud

hulud

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 268 posts
ok, it worked on my xp machine, but apparantly "shutdown" isnt a valid 2000 dos command?
  • 0

#6
dsenette

dsenette

    Je suis Napoléon!

  • Administrator
  • 26,019 posts
  • MVP
hmm..it should be...
  • 0

#7
gerryf

gerryf

    Retired Staff

  • Retired Staff
  • 11,365 posts
only with the resource kit installed.

download pstools

http://www.sysintern...es/PsTools.html

there is a shutdown tool for the commandline in it
  • 0

#8
hulud

hulud

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 268 posts
thanks for your help guys, i think the file is now fixed!
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP