How to run a task in Vista even when your system is in Sleep or Hibernate mode

By Prasanna LM | Feb 1, 2009


The Windows Vista comes with a new & enhanced Task Scheduler service which offers much more control & flexibility when compared to the ones provided in the previous versions of Windows. The Vista Task Scheduler service provides controlled & unattended management of task execution, launched either on schedule or asynchronously in response to events arising out of system state changes. One of the best features provided by the new task scheduler is the ability to schedule tasks even when the system is in Sleep or Hibernate mode. When activated, the system automatically wakes up & performs the scheduled task.

Here, I will show you how you can wake up your system to run a bunch of songs in Windows Media Player at a predefined time on a frequent basis. If you need a musical boost to wake up early in the morning this may serve you best by acting as an alarm.

  1. From your start menu, go to ‘All Programs -> Accessories -> System Tools’ & select the ‘Task Scheduler’ program.window-start-task-scheduler
  2. Select the Create Task option from the Right Side bar of the Task scheduler panel.
    create task
  3. Enter the name & the optional description of the task in the General tab of the Create Task dialog box.
    task name & description
  4. Select the Triggers tab & create a new trigger. Here, you can set the trigger points & frequency for the task. Select the Daily radio button and schedule date & time for the task to run. Click on Ok.
    task trigger
  5. Select the Actions Tab & create a new Action. Select the Program to run (Windows Media Player) by clicking on the Browse button. Give all the additional arguments to the command in the ‘Add arguments’ section. For example, the following arguments needs to be given along with the wmplayer for playing the Windows Media Player play list.                                                                                                                                                                                          “/play /close Fully_Qualified_Name_Of_The_Playlist_File
    task action
  6. Select the Conditions tab & select the Wake the computer to run this task check box.
    task conditions
  7. Now, Click on Ok to save your Task.

Once you are done with these 7 steps, your system will automatically start the task at the scheduled time even if it is in sleep or hibernate mode.


About the author

Prasanna LM is a programmer & a tech enthusiast working from Bangalore, India. He is a Sun Certified Java Programmer & he is passionate about developing software's using Java & JEE related technologies.

Share and Enjoy:
  • StumbleUpon
  • Facebook
  • TwitThis
  • Digg
  • Technorati
  • del.icio.us
  • LinkedIn
  • MySpace
  • Reddit
  • YahooMyWeb
  • Yahoo! Buzz

Related Posts

25 Comments so far
  1. internet marketing strategies February 3, 2009 11:50 am

    Windows Vista provides a enhanced Task Scheduler service which makes it possible to run tasks even when your system is in sleep or hibernate mode. The disadvantage is a 5 second delay while Vista manages the switch back to normal power mode. In the event of a power failure you would lose any unsaved data which is stored in RAM. You may also have to re-enter your password to resume after sleep, however that is another configurable setting.

  2. internet marketing strategies February 3, 2009 12:05 pm

    I’ve noted some characteristics when this happens. I might have lots of browser windows and applications open. However this is more of an exception rather than a rule. But this has been happening for a couple of months and is still an unsolved mystery.

  3. Funny Quotes February 4, 2009 9:39 am

    Making my system an alarm would be pretty cool. I currently just use my cellphone as an alarm and am tired of waking up to annoying beeps. I would like to make it play some sort of songs to wake me up. Thanks for this.

  4. Singapore Property February 4, 2009 2:11 pm

    This is great. Beside setting off the music the scheduled time, I am wondering whether I could schedule other tasks. For instance, blogspot allow blogger to pre-write blogs and schedule blogs to post on certain dates even while you are away on holiday.

  5. Ajith Edassery | Blog Money February 5, 2009 2:00 am

    This is an interesting feature :) However, i still hate Vista for it’s far too underperforming for a desktop O/S. I have a Vista laptop but so pathetic. I miss my XP laptop…

  6. Nihar February 5, 2009 8:29 am

    Great feature. Thanks for this. I have got a new Laptop with VISTA. will try this out.

  7. Prasanna February 6, 2009 11:16 am

    @BradCallen, Yes. There is a short delay for switching back to the normal power mode. I think, that should not be a major issue in majority of the cases. Your problem seems to be an exception. I have never experienced something like that till now.

    @FQ, Earlier, I was also fed up of listening to same kind of sound regularly in the early morning. Now, from past few months, I am using task scheduler for my morning alarm. I feel much better than the normal alarm as I can try different varieties.:)

    @SP, Yes, By all means. I just gave you an example. You can use task scheduler service to schedule any other task.

    @Ajith, Initially I was also not very much comfortable with Vista inspite of using a high end laptop. But, now I have started loving Vista more than XP.

    @Nihar, Congrats for your new Vista Laptop. Hope you write more about your Vista experience once you become familiar.

  8. Nihar February 10, 2009 9:05 am

    @Prasanna, Right now i am not using the new laptop. WIll write about it after i start using it.

    I hope to see you on my blog soon!

  9. Ashish February 10, 2009 2:19 pm

    Hi Dude,
    Landed on your blog after long time. Happy to see lots of improvement.Keep the good work!

  10. Prasanna February 11, 2009 8:41 pm

    @Nihar, hey, I have been a regular visitor to your blog. Will surely continue to keep an eye on all of your future posts.

    @Ashish, Hi man, welcome back & thanks for your encouraging words.

  11. Cheap Laptop Computers February 12, 2009 1:13 am

    Very cool, I do not believe this function exists in Windows XP, at least I have tired to find it and could not

  12. fluke pat tester February 12, 2009 11:54 am

    Hey
    Still i am not using vista window and yesterday my friend came and said to me that he has recently installed the vista and running very good but to me i will take more time to install the vista at the present time in my pc xp is running that is giving good performance.

  13. Prasanna February 12, 2009 2:13 pm

    @CLC, Yeah. This feature was not available with XP. It had only a basic task scheduler.

  14. archez February 24, 2009 8:04 am

    Very Good Idea Great feature. Thanks for this. I will inform to my friends about VISTA. will try this one.
    succes……

  15. web design miami March 11, 2009 5:08 pm

    Well I missed a feature like that in xp. I mean I often wanted my pc to start doing something while I was at work so I had to download 3rd party applications just for that. It was very annoying.

  16. MBA Projects March 14, 2009 6:40 pm

    Came to your blog from google. I have used vista only two times. But i was not aware of these features of vista. Very informative blog. Thankyou

  17. Diet pills online March 16, 2009 2:43 pm

    wow. really cool. I tried it just now on my vista and yep. its working. i needed this one, thanks a lot. good post

  18. Buy Pandora Battery March 16, 2009 3:44 pm

    I have not used vista yet. I will be installing it within a week. Then i’ll try this feature.
    thanks for the post

  19. Wordpress Themes Chart March 16, 2009 9:41 pm

    eyeopener ideas about Vista Task Scheduler service ! never got that things on hacking sites @buddies@

  20. villas in seminyak March 20, 2009 7:21 pm

    This is really cool. I tried it just now on my vista and done. its working. thanks a lots. great post.

  21. Firany April 3, 2009 1:59 pm

    This is awesome. There always were ways of scheduling tasks for sleep mode but now it’s just so much easier. No 3rd party software, no problems. But I guess it won’t make up for the flaws that vista bring to the table (mostly huge system requierments).

  22. Philippine Astronomy April 27, 2009 8:21 pm

    well well now this makes the task of scheduling even more fantastic. without any involvement of any extra plugin or software. I am sure there are similar vista based applications that are unknown to me.

  23. Fertility April 29, 2009 3:06 pm

    Dear Friend i must point out that you have worked very hard in making this post on such a complex issue, so easily understandable to all of us. i think wit no need to have any external plugins this application would become more popular.

  24. Baby Boy Gift June 1, 2009 6:01 pm

    Bringing a computer out of hibernate can be quicker but if you might have a storm while you are away from the computer and have it plugged into the mains, it could get damaged so is better shut down and unplugged.

  25. PaulMan August 11, 2009 4:13 am

    Hello, There is a setting you have posted that I’d had to change to make this work. When I try to schedule a task, any tasks, the only way it will work is if “Run when user is logged on” is checked (Under General Tab). When, as in your tutorial, the other “whether or not….” is checked it does not run. This happened in both Vista and Windows 7. Is there a setting I am missing?
    Thanks

Leave a Comment

If you would like to make a comment, please fill out the form below.

Name (required)

Email (required)

Website

Comments

© 2010 TechSagar, Privacy Policy