none
Nightly reboot

    Question

  •  

    Could someone please list STEP-BY-STEP how to get WHS to perform a nightly reboot. I am away from home a lot and sometimes the computer refuses to connect remotely. I read in another thread a hard reboot solves this problem, but I do not know how to make this happen. TIA....Bob
    jeudi 1 novembre 2007 23:31

Réponses

  • 1.  rdp into your server desktop

    2.  open control panel

    3.  open scheduled tasks

    4.  add new task

    5.  browse to windows/system32/ and select shutdown.exe, click open

    6.  set frequency as daily

    7.  set time for some time when the server is quiet - I use 0300

    8.  enter user name with admin privileges and password for that account

    9.  check the block to open advanced properties and click finish

    10.  in the "run" window, add the "/r" (no quotes) switch after the file extension so it will reboot

    11.  save task

    vendredi 2 novembre 2007 00:47

Toutes les réponses

  • You'll find step by step guide overhere: http://teamtutorials.com/windows-tutorials/schedule-windows-to-automatically-restart

     

    You can skip first step (download shutdown.exe), this is already in the C:\windows\system32 folder

     

    In the run box type the following:

     

    Code Block

    C:\WINDOWS\system32\shutdown.exe -r -f -d p:00:00 -t 120

     

     

    the -d p:00:00 argument is required, it provides the reason for shutdown (in this case a planned shutdown)

     

    the -t 120 argument is optional. It's convenient for testing though, since it will give you 2 minutes to abort the shutdown

     

    to abort shutdown type shutdown.exe -a in command shell (on WHS do Start, run, type cmd, hit Enter to get command shel)

     

    the -f argument closes running apps. without this argument the shutdown may also fail

    vendredi 2 novembre 2007 00:36
    Modérateur
  • 1.  rdp into your server desktop

    2.  open control panel

    3.  open scheduled tasks

    4.  add new task

    5.  browse to windows/system32/ and select shutdown.exe, click open

    6.  set frequency as daily

    7.  set time for some time when the server is quiet - I use 0300

    8.  enter user name with admin privileges and password for that account

    9.  check the block to open advanced properties and click finish

    10.  in the "run" window, add the "/r" (no quotes) switch after the file extension so it will reboot

    11.  save task

    vendredi 2 novembre 2007 00:47
  • If you follow description from Technogeez it will not work (on W2K3 / WHS). Please read my first post in this thread for details.

     

    EDIT: I'm wrong, description from Technogeez DOES work

    vendredi 2 novembre 2007 01:02
    Modérateur
  • I wuz gonna say, my WHS begs to differ - it shuts down every Tuesday morning at 0300 Eastern and comes right back up.  I purposely didn't get fancy with the switches for simplicity's sake.

    vendredi 2 novembre 2007 01:55
  •  Technogeez wrote:

    I wuz gonna say, my WHS begs to differ - it shuts down every Tuesday morning at 0300 Eastern and comes right back up.  I purposely didn't get fancy with the switches for simplicity's sake.

    Yes, that's also what I like; Keep It Simple and Stupid
    vendredi 2 novembre 2007 08:36
    Modérateur
  • Thanks, worked like a charm.

     

    vendredi 2 novembre 2007 13:15