Windows 7 schedule auto shutdown

April 26th, 2009

Below is a simple example about how to schedule shutdown your windows 7 automatically.

1.Create a bat file,for example, “shutdown.bat”

2.Add the following lines to this file

@echo off
 
at 22:50 every:M,T,W,Th,F,S,Su shutdown -s -t 60 -c "Too late,it's time to go to bed!"
 
echo Done!
 
pause&end

3.Right-Click this file then click Run as administrator

runasadministrator

4.You can go to Task Scheduler to view/remove/disable this job.

win7job

Note:Of course you can use task scheduler to schedule your jobs

24 Responses to “Windows 7 schedule auto shutdown”

  1. Clintiii says:

    huh i cant modify the time and i cant delet it from task scheduler. its showing an error

  2. Admin says:

    @Clintii,
    Sorry,just found can not modify the time from task scheduler,but we can delete this job on task scheduler.

  3. subhash says:

    Hey when windows warns you that after 2 week your system will restart

    at 13 day run this command as administrator in command prompt:-
    ————————-
    slmgr -rearm
    ————————-

    this will reinstall your windows licence.. so no tension up to 3-0 days………

    again after 29 days do the same

    remark:- this command will not work more than 3

    SUBHASH CHANDRA THAKRE
    SENIOR UNDERGRADUATE AT UEC, UJJAIN MP (INDIA)
    http://sites.google.com/site/subhashcthakre

  4. Sreejith says:

    nice one :)

    keep posting

  5. Wladyslaw Janowski says:

    Hi,
    Just created in Win 7 (for testing) batch file named shutdown.bat, copied the text from your example, only changed the time. Then I’ve ran the batch file as administrator and could see in command window that a job was added. But when I’m opening Task scheduler now, I cannot see this task. What’s wrong? How can I delete the job or change parameters?
    What s the meaning of the parameters
    -s -t 60 -c ?
    Regards
    WJ

  6. Hamid says:

    I have also the same problem. I cannot find the task on task scheduler.

  7. JR says:

    -s shutdown
    -t time before shutdown in seconds
    -c Comment

  8. Sumaiyasa says:

    i have install timer nukr in my windows 7 enterprise eval, i had download from microsoft. if i waiting for some time when login, my pc auto restart if i have login, my pc normal

  9. Sumaiyasa says:

    i have install timer nuke in my windows 7 enterprise eval, i had download from microsoft. if i waiting for some time when login, my pc auto restart if i have login, my pc normal

  10. Pavel says:

    This tool has shutdown pretty extension for Task Scheduler:

    http://friendlyscheduler.com/

  11. [...] Other tricks I may need are here and there. [...]

  12. anshul says:

    just set your date back. turn internet synchronization of clock to off.and enjoy using windows 7 ultimate release candidate without shutting down so far that u can manage with the wrong date

  13. Goran says:

    Can someone tell me what does this .bat file do (I have scheduled it) and what time should i put in if now is, perhaps, 00:01 hrs. How it prevents auto-restart and does it prevent it at all??

  14. Frank says:

    I’ve just set my date back and turn of the sync… waiting 2 hours for the surprise than i’ll come back -_-

  15. Frank says:

    it works but i took no chances and i also change the Bios
    clock’s date. ( year 2004 have the same day/month and the
    day’s number match for the year 2010 )

    Ps: Sorry for my bad english i’m french.

  16. venantas says:

    Hey, Iv got windows 7 RC 7100 ultimate and it’s automaticly shuting down every 2 hours, what trick can help me to remove this thing? sry for bad eng

  17. mot says:

    the same prob n here ! :| what can we do with our expired windows ?

  18. Antity says:

    Awsome thanks…. works like a bomb!

  19. Roofus says:

    @Venantas: get build 7600
    @mot: you can find a crack under 5 mins on google -_-
    but it be best if you reinstall with a cracked version

  20. Jim says:

    Maybe you should BUY IT if its shutting down every 2 hours….no?

    if not, ask your smarter friend for a copy. :)

  21. Anom says:

    Jim u must be a crack baby or a lil retarded… maybe their evaluation copy fits their scheme of things best or they dont wanna loss their programs nd files.. maybe they dont have the resources to “reinstall”… wat ever dude just save ur sarcastic comments. thanks!!!

  22. mido says:

    thanks thanks

  23. Jim says:

    Anom u must be a Dik Sukin Fag, Windows just doesnt shut down automatically every 2 hours for fun! They must have fuked sheet up like u do to horses, grow a brain and leave yo stinky ass comments to facebook!

Leave a Reply