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
Chaoz

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
Berton

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
Pyprohly

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
.

Reply

 Need to run a task when resuming from sleep




Thread Tools Search this Thread
Search this Thread:

Advanced Search




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 after resuming from sleep
For months I had Win7 installed and running without any incidents; I was using Microsoft Security Essentials. The other day I installed Win8, decided I hated it, and reformatted/installed Win7. This time I tried Avast 7 Free and things looked good for a while until I woke up my PC from Sleep mode...
BSOD Help and Support
Delay resuming from sleep
Well when you put you PC to sleep, its meant to instant resume, right? Well not for me. I had problems with my PC freezing from sleep, however i think its fix (Not quite sure) Anyway back to my issue.. So i press the power Button to wake my PC up, and Loads my Gigabyte screen and some other...
Performance & Maintenance
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.2.0.0.768.3 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:43.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App