Reboot after 10 minutes idle time

Posted on 2007-08-07
Last Modified: 2012-08-13
How do I reboot a Windows XP computer after X minutes of idle time? I prefer freeware/GNU/open source if possible.

Question by:light-blue
    LVL 12

    Assisted Solution

    You could try setting a screensaver to start after X minutes of idletime and then use the script at the following link to detect the screensaver and reboot (using "objItem.Win32Shutdown(2)" rather than the (4) used in the script):

    LVL 82

    Accepted Solution

    Create a new admin account, ShutDownUser or whatever.
    Use this user to run a scheduled task that will execute the following command after 10 minutes idle time:
    %Systemroot%\system32\shutdown.exe -r -t 0 -f
    Don't be confused if you don't have the "Idle" option while running the Scheduled Tasks wizard; just finish the wizard with any scheduling, and at the last page, check the box "Open advanced settings" (or reopen the task once it's created); then you'll be able to configure it to run after 10 minutes of idle time.
    LVL 1

    Author Comment

    Thank you both. The scripting solution was too time consuming for today, but I will investigate, as that info looks intriguing.
    LVL 12

    Expert Comment

    Yeah, I liked oBdA's solution too!  Thanks for the points.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    It is only natural that we all want our PCs to be in good working order, improved system performance, so that is exactly how programs are advertised to entice. They say things like:            •      PC crashes? Get registry cleaner to repair it!    …
    In a recent article here at Experts Exchange (, I discussed my nine-month sandbox testing of the Windows 10 Technical Preview, specifically with respect to r…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    732 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

    17 Experts available now in Live!

    Get 1:1 Help Now