Windows 7 Scripted Weekly Reboot

Posted on 2012-09-06
Last Modified: 2012-09-22
We loved Windows 7 at our office.  It works flawlessly--that is a double edge sword.

We check the uptime and it is 14, 20, 30+ days without a reboot.  Then we have to spend 10 minutes doing a reboot during the day wasting good productive time.

What is the best way to setup a script to give the computer a quick reboot every few days?
Question by:gta2011
    LVL 10

    Accepted Solution

    Didnt try it myself, but create a shutdown.exe /r shortcut and add it to a scheduled task. Run it once a week.
    LVL 13

    Expert Comment

    Create a scheduled task to run (weekly) the following command:

    shutdown -r

    Open in new window

    I'd put this command in a batch file on store it on the C:\ drive of all of your computers. Then have your scheduled task execute that batch file at a day and time of your liking.
    LVL 13

    Expert Comment

    You could also use the following information instead of making a batch file.
    Create a Basic Task
    LVL 10

    Expert Comment

    Tried my idea and would need a bat to call the shutdown cmd as IT_Crowd mentions
    LVL 7

    Expert Comment

    You can also create a batch script using same command which can also creates logs.

    @echo off
    Start shutdown -r -t 60 -f
    echo %date%, %time%, %computername%, Restart, >> Restart_Logs.csv

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Vista's Magnifier was a tool that could be turned on in the Ease of Access Center so that things on the screen could be seen more easily.  The Vista tool showed you a magnified view in a window of what you were pointing at with your mouse.  But the …
    One of the features I've come to appreciate about Windows 7 and Windows Server 2008 R2 is the ability to pin applications to the task bar. As useful a feature as I've found this, it does have some quirks.  For example, have you ever tried pinning an…
    This Micro Tutorial will give you basic overview of the control panel section on Windows 7. It will depth in Network and Internet, Hardware and Sound, etc. This will be demonstrated using Windows 7 operating system.
    This Micro Tutorial will give you a basic overview of Windows Live Photo Gallery and show you various editing filters and touches to photos you can apply. This will be demonstrated using Windows Live Photo Gallery on Windows 7 operating system.

    759 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

    12 Experts available now in Live!

    Get 1:1 Help Now