Results 1 to 5 of 5

Thread: Auto reboot windows sever 2003 [resolved]

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2004
    Posts
    262

    Resolved Auto reboot windows sever 2003 [resolved]

    Hi I have a server on a domain, which runs a crummy application. Basically becuse of this application we have to maually reboot the server every night, and then log on again.
    Is it possible to automate this, as the application we run isn't a service the server not only has to reboot itself but also automatically log itself on.

    Is this possible?
    Last edited by Oliver1; Nov 24th, 2005 at 09:32 AM.

  2. #2
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: Auto reboot windows sever 2003

    You can have the server autologon by following the instructions here.

    As for the auto restart, you can set up a scheduled task to run at midnight every day which executes the following command:

    "%windir%\System32\shutdown.exe -f -t 00"

    Your third option could of course be to get rid of the "crummy" application and replace it with a better one
    Last edited by visualAd; Nov 14th, 2005 at 06:18 AM.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  3. #3
    Fanatic Member -TPM-'s Avatar
    Join Date
    Jul 2005
    Posts
    850

    Re: Auto reboot windows sever 2003

    I've found that a scheduled restart doesn't work on the local machine, instead you can schedule it on another server and use shutdown's -m \\MachineName parameter to restart a remote machine.
    TPM

    Add yourself to the VBForums Frappr Map!!

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2004
    Posts
    262

    Re: Auto reboot windows sever 2003

    Cool looks good, is hometime now but will give it a go tommorow.

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2004
    Posts
    262

    Re: Auto reboot windows sever 2003

    Thanks finnaly got around to this and it works a treat.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width