Need to run a task when resuming from sleep

Chaoz

New member
Member
Local time
9:18 AM
Messages
69
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 Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom build
OS
Windows 7 64 bit
CPU
i5 4690k
Motherboard
Asrock Z97m Pro4
Memory
16gb DDR3 SDRAM DDR3 1866
Graphics Card(s)
ATI HD 7770
Sound Card
HTO Striker
Hard Drives
Sandisk Extreme 250gb SSD
PSU
Corsair CX 500
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 Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Customs, Dell, Gateway, HP, Toshiba, Acer, ASUS
OS
Windows 7 Ultimate 64-bit, Windows 8.1 64-bit, Mac OS X 10.10, Linux Mint 17, Windows 10 Pro TP
Keyboard
Microsoft
Mouse
Microsoft
Under the task's 'Conditions' tab, uncheck the power option indicated below:

thread-no-356645.gif

And check the third power option.
 

My Computer My Computer

Computer type
PC/Desktop
OS
Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
Back
Top