Oli L;495820 Wrote:
> Hi all.
>
> I'm having a problem with Scheduled Tasks and the sleep function. I've
> created tasks with "Wake the computer to run this task" set, and the
> computer
> does indeed wake up at the specified time to run the task, but it then
> goes
> back to sleep two minutes later, before the task has had time to
> finish.
> When I wake the computer myself later, the task carries on.
>
> I've tried this with a task that runs a windows app, one that runs a
> command
> line app, and one that runs defrag, and it's always the same - it
> suspends
> again after 2 minutes.
>
> Has anyone else had a problem with their computer resuspending / going
> back
> to sleep prematurely? Does anyone have any ideas for how to stop it
> doing
> this?
>
> Thanks.
*Solution to Vista Task Scheduler Wake Up then Sleep after 2 minutes*
I joined specifically to share a solution to a tricky Vista problem.
When you wake a Vista PC through Task Scheduler or some other automated
Wake Up program, Vista goes back to sleep after 2 minutes. See these
threads for examples of this issue.
'After scheduled task wake-up, computer goes back to sleep too soon'
(
http://tinyurl.com/28ffz5)
'Vista Sleep Mode and Task Scheduler' (
http://tinyurl.com/2fhtjd)
The solution/workaround is:-
1) Switch on 'Media Sharing' in Network and Sharing Center
2) In Power Options, Advanced, Multimedia Settings, When Sharing Media,
enable the setting 'Prevent idling to sleep'.
3) The above will fix the sleep after 2 minutes issue. Obviously, you
need to set timeouts for sleep/hibernate as well to ensure your task has
time to complete.
This has worked for me for a couple of months now. I have a PC which I
log into remotely with LogMein, so it needs to be on all the time. I
wake it up and run a backup at 6am. Since this fix it has always been
available for login!
Enjoy
Alan
--
Alan111S
Posted via
http://www.vistaheads.com