Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
Alarm clock software that can turn the computer on?

I need something that can wake someone up in the morning - basically like a cron event in Linux. I think this needs to be done in PowerShell, and I don't know a thing about that. The requirements are:

  1. It must wake up the computer from sleep at a specified time (eg. 07:00 hours).
  2. It shall play a specified song in iTunes (or another program) at that time.

That's it! Answers that also feature a *NIX version of the script will be favored.

share|improve this question

marked as duplicate by Ƭᴇcʜιᴇ007, Simon Sheehan, Tom Wijsman, bwDraco, Nifle Dec 17 '11 at 12:51

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Why does it need to be a script? I used to do this, and I just used task scheduler to execute a playlist at the time I needed to get up. I even had the computer wake itself up to do it, then close WMP and put itself back to sleep after 10 minutes. Now I just use my phone. – SaintWacko Dec 17 '11 at 0:04
What ^He^ Said. Twice. – OG Chuck Low Dec 17 '11 at 0:14
How about you slug your kid brother in the arm and tell him something to the effect of "grow up and figure out how to wake yourself up, dweeb!". Or do older siblings not act like that anymore? :) – Ƭᴇcʜιᴇ007 Dec 17 '11 at 0:26
@SaintWacko The guy's name is (phonetically) "troll". I mean, c'mon now... – Dec 17 '11 at 0:34
@techie007 Love it! Try the bucket-O-water alarm, gets them trained in just a few days. – Moab Dec 17 '11 at 1:10
up vote 5 down vote accepted

Neither you nor your kid brother need a PowerShell script. Therefore, I will not answer your question, but I will solve your problem.

Well, your kid brother not being able to wake up in the morning is almost certainly a problem I cannot solve. But I will try.

You can use Task Scheduler in Windows 7 to open an mp3 file in the default media player.

On the Windows 7 computer in question, open the Start menu and search for Task Scheduler. You will find a window that looks a lot like this:

Task Scheduler

On the Action menu, select Create Basic Task....

Create Basic Task Wizard: Create a Basic Task

Create Basic Task Wizard: Task Trigger

Create Basic Task Wizard: Daily

Create Basic Task Wizard: Action

Create Basic Task Wizard: Start a Program

Choose to Open the Properties dialog for this task when I click Finish

Create Basic Task Wizard: Summary

Set the task to Run whether user is logged on or not

General Tab

Set Wake the computer to run this task

Conditions Tab

When you click OK, you will be prompted for the password of the user account that will run the task.

share|improve this answer

Karen's Alarm Clock - I used it alot on late nightshifts when I needed heavy rock to wake me up in the evenings!

not a powershell script, and haven't tested wake from sleep, but it gets the job done :)

share|improve this answer

Not the answer you're looking for? Browse other questions tagged .