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: Need to run a task when resuming from sleep

28 Dec 2014   #1

Windows 7 64 bit
Need to run a task when resuming from sleep

I have a batch file that stops and restarts a service. I'm trying to make a task to run that when the computer wakes from sleep but it doesn't run. On the history it does say the task is completed. If I click run manually it also works.

I have the trigger as:

Begin the task: On an event
Log: System
Source: Power-Troubleshooter

I set it to run only when the user is logged on, if I use run whether user is logged on or not it gives me an error.

My System SpecsSystem Spec
28 Dec 2014   #2

Windows 7 Ultimate 64-bit, Windows 8.1 64-bit, Mac OS X 10.10, Linux Mint 17, Windows 10 Pro TP

I don't have a solution but will offer that I've never had success in anything when allowing Sleep and Hibernate to take control so I disable them. But then I use Win7 and Win8.1 on my Custom-built computers, don't know if OEM/Brandname computers will work the same.
My System SpecsSystem Spec
29 Dec 2014   #3

Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan

Under the task's 'Conditions' tab, uncheck the power option indicated below:

Need to run a task when resuming from sleep-thread-no-356645.gif

And check the third power option.

My System SpecsSystem Spec


 Need to run a task when resuming from sleep

Thread Tools

Similar help and support threads
Thread Forum
BSOD after resuming from Sleep
Hello! This is my first time here so please forgive me (and feel free to correct me) if I'm doing anything incorrectly. I've been Googling this problem extensively, but haven't been able to find a fix. I'm getting an oddly inconsistent BSOD when my computer resumes from Sleep. But it...
BSOD Help and Support
BSOD while resuming from sleep, or not resuming from sleep at all
My system was never able to resume from sleep. Tried several things, BIOS settings, settings for power management etc. Thought it could be related to recovery software or other installed drivers etc. But now: I replaced my harddisk with a SSD, did a fresh install of W7 Ultimate 64. Removed all...
BSOD Help and Support
BSOD's after resuming from sleep
I've recently started to get occasional BSOD's after resuming from sleep. I'm running Windows 7 Ultimate x64 on a core i7 desktop. As far as I can tell, my drivers are up to date. I ran windows memory diagnostics and 4 passes of memtest86+ 4.0 without finding any RAM errors. Minidump files are...
BSOD Help and Support
BSOD's Resuming From Sleep
Hi all, this is a post for a friend. She's getting BSOD's when resuming from Sleep Mode. Here's the data: Problem signature: Problem Event Name: BlueScreen OS Version: 6.1.7600. Locale ID: 4105 Additional information about the problem: BCCode: 7a
BSOD Help and Support
Resuming from sleep...
...will not connect me back to internet. It just says unidentified network and no internet access, solution is to disable and enable my adapter but it gets quite annoying. I've noticed this before on my bro's laptop but solution to stop it from happening was never found. I got asus P5Q-Pro...
Network & Sharing

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 15:25.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App