Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: How to define task to run when computer wakes from sleep

19 May 2012   #1
sevendo

Windows 7 x64
 
 
How to define task to run when computer wakes from sleep

Using Task Scheduler, is there any way to define a task that will run whenever the computer wakes up from sleep?

I can't seem to find that as an option under Triggers.


My System SpecsSystem Spec
.

19 May 2012   #2
Saintor

Win Pro 7 32-bit
 
 

Look on the 'conditions' tab. There is a 'Wake the computer to run this task' check box.
My System SpecsSystem Spec
19 May 2012   #3
DavidE

Win 7 Pro x64 SP1, Win 7 Ult x86 SP1
 
 

Hello sevendo,

I've never done what you want before, but
I just tried this and it worked for me...the event task triggered on a wake up.

Set up the task trigger to begin on "On an Event"

Create a "Custom Event Filter" with
Event Level: "Information"
Source: Power-Troubleshooter
Event ID: 1 (The system has resumed from sleep)
Below is my screen print for the Custom Event Filter

I set up my test to run WMP...
Depending on what your event task needs to do, there may be more to it such as security/permissions considerations.
I don't know if there are any more event-id's for "wake up"...i see event id 1 for my last wake up...

If the approach suggested by Saintor will work for you, that may be simpler.

Name:  WakeEvSP01.PNG
Views: 27
Size:  35.4 KB


My System SpecsSystem Spec
.


20 May 2012   #4
sevendo

Windows 7 x64
 
 
need to define task that will run whenever computer awakens

That isn't what I want.

I don't want to wake the computer to run a task.

I want to define a task that will run whenever the computer wakes up for whatever reason.
My System SpecsSystem Spec
20 May 2012   #5
DavidE

Win 7 Pro x64 SP1, Win 7 Ult x86 SP1
 
 

Did you try setting up a task like mine in Post #3?
This works for me - the task runs whenever the PC wakes up.
My System SpecsSystem Spec
20 May 2012   #6
sevendo

Windows 7 x64
 
 

Quote   Quote: Originally Posted by DavidW7ncus View Post
Hello sevendo,

I've never done what you want before, but
I just tried this and it worked for me...the event task triggered on a wake up....

If the approach suggested by Saintor will work for you, that may be simpler.

Attachment 212619
I was replying to Saintor that what he suggested wasn't what I was looking for.

I haven't yet tried your approach, but I will and I'll let you know if it works for me.
My System SpecsSystem Spec
21 May 2012   #7
sevendo

Windows 7 x64
 
 

Quote   Quote: Originally Posted by DavidW7ncus View Post
Did you try setting up a task like mine in Post #3?
This works for me - the task runs whenever the PC wakes up.
I just tried it--and it worked for me too!

It does exactly what I need.

Thanks very much for your help!
My System SpecsSystem Spec
21 May 2012   #8
DavidE

Win 7 Pro x64 SP1, Win 7 Ult x86 SP1
 
 

You're welcome, and thanks for replying back and marking the thread solved!
My System SpecsSystem Spec
Reply

 How to define task to run when computer wakes from sleep




Thread Tools





Similar help and support threads
Thread Forum
Computer wakes up after I put it to sleep
Please forgive but I do not know computer lingo or much about computers at all, so be gentle. My problem is this: When I put my computer to sleep sometimes it will wake up on its own and there is no one in the room. If it is still off when I come into the room it will turn when I turn on a...
General Discussion
BSOD when computer wakes up from sleep
My laptop will start just fine, but if it goes to sleep when I try to wake it up it will crash. This is not a random issue, it happens every time the computer wakes up. When the problem first started, it would give an error box that read "dmw.exe Application Error" before it would go to the...
BSOD Help and Support
BSOD after computer wakes up from sleep/hibernate
Hi, Everytime my computer wakes up from sleep I get the BSOD. I've attached the dump files. Please let me know what possibly could be causing this. Thanks in advance. Regards JW
BSOD Help and Support
Computer wakes up from sleep, nothing displayed
Hi, As the title says, occasionally when I wake up my computer from sleep, it will turn on (all of the fans and lights start running) but there is nothing displayed on either of my monitors. If I hard reboot, the problem is fixed. I have my hard drive set to "never turn off" and this hasn't...
General Discussion
Computer wakes 1 second after going to sleep
Title says it all. I have searched for a while and feel like I have tried most fixes I've seen but the problem persists. Weather I manually put it into sleep or not, it goes to sleep for about a second then wakes up, same thing every time. when I run the "powercfg lastwake" command, I get: ...
Performance & Maintenance
Computer wakes up after seconds in sleep
Hello, I'm new here and I have a problem with Windows 7. I cannot use the sleep function! This is is so frustrating.. I used to put my computer to sleep all the time in XP. But when I upgraded to W7 a while ago, my computer just wakes up instantly after going into sleep mode, as if I was...
General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 02:45.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App