Automatically rebooting the server

Posted on 2004-11-03
Last Modified: 2010-04-19
How would i go about setting up my 2003 server to reboot once a week?
Question by:dpapineau
    LVL 34

    Accepted Solution

    Save the following line as reboot.cmd somewhere on your machine (root of a drive or somewhere on your PATH would be good)

    shutdown -r -c "scheduled reboot" -d p:1:1

    Then at a command prompt type the following:

    at 03:30 /every:sunday c:\reboot.cmd

    This will cause your machine to reboot and restart every Sunday at 3:30AM with a reboot description of "scheduled reboot" and a reason of Hardware: Maintenance.

    Feel free to change the parameters to your particular needs.

    Dave Dietz

    Expert Comment

    How will this help, what is the reason for doing so?

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Suggested Solutions

    by Batuhan Cetin Within the dynamic life of an IT administrator, we hold many information in our minds like user names, passwords, IDs, phone numbers, incomes, service tags, bills and the order from our wives to buy milk when coming back to home.…
    I guess it is not common knowledge to most Wintel engineers/administrators: If you have an SNMP-based monitoring system in your environment (and it's common to have SNMP or Syslog) it's reasonably easy to enable monitoring of the Windows Event logs,…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    731 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now