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: Weird behaviour of task scheduler

28 Dec 2009   #1
brunsviga

Windows 7 Home Premium 64 bits
 
 
Weird behaviour of task scheduler

Hi,

I noticed a strange behaviour from the Task Scheduler.

When my TNT program creates a scheduled task and then I put the computer in sleep about half an hour before the emission to record everything is going fine (computer wakes up on time, program records the emission and go back to sleep if I asked to do it).

However when I put the computer in sleep more than one hour before the start of the emission to record then the computer can't wake up on time and the program doesn't record anything.
I can see in the Event Viewer an event about the wake up of the computer. When it doesn't work the GUID is 0 (something like "Task Scheduler launched "{00000000-0000-0000-0000-000000000000}" instance of task..."). When it works the GUID is a valid one.

I had Vista before and everything was ok. I also tried to change the scheduled task to run it with the highest privileges but it doesn't help.

Does somebody have an idea what's going wrong here?

Thanks in advance for your answers.


My System SpecsSystem Spec
.
28 Dec 2009   #2
Saltgrass

Windows 7 x64
 
 

I do not know if the computer can wake up from hibernation to do the task, but you might check your power settings to see if that might be happening after an hour, or perhaps something else is turning off after that amount of time.
My System SpecsSystem Spec
28 Dec 2009   #3
richc46

Microsoft Community Contributor Award Recipient

Windows 10, Home Clean Install
 
 

Quote   Quote: Originally Posted by brunsviga View Post
Hi,

I noticed a strange behaviour from the Task Scheduler.

When my TNT program creates a scheduled task and then I put the computer in sleep about half an hour before the emission to record everything is going fine (computer wakes up on time, program records the emission and go back to sleep if I asked to do it).

However when I put the computer in sleep more than one hour before the start of the emission to record then the computer can't wake up on time and the program doesn't record anything.
I can see in the Event Viewer an event about the wake up of the computer. When it doesn't work the GUID is 0 (something like "Task Scheduler launched "{00000000-0000-0000-0000-000000000000}" instance of task..."). When it works the GUID is a valid one.

I had Vista before and everything was ok. I also tried to change the scheduled task to run it with the highest privileges but it doesn't help.

Does somebody have an idea what's going wrong here?

Thanks in advance for your answers.
I have found a bigger problem. If the task takes longer than a certain amount of time, the computer goes back to sleep.
My System SpecsSystem Spec
.

28 Dec 2009   #4
brunsviga

Windows 7 Home Premium 64 bits
 
 

Quote   Quote: Originally Posted by Saltgrass View Post
I do not know if the computer can wake up from hibernation to do the task, but you might check your power settings to see if that might be happening after an hour, or perhaps something else is turning off after that amount of time.
Indeed it could wake up from hibernation at least under Vista I didn't try yet with 7 but I already checked the power settings and the hibernation mode is disabled. The only thing deactivated after less than one hour I can see with the power settings I use is the hard disk (after 20 minutes). But as the task successfully ran 30 minutes after the computer started to sleep I don't think this could have an effect.
I check further if something else is deactivated after some time.
My System SpecsSystem Spec
Reply

 Weird behaviour of task scheduler




Thread Tools




Similar help and support threads
Thread Forum
Need help creating a task scheduler task to move files over a network.
Hello everyone, I need to have a task run that will move the contents of a folder from one computer to another over my home LAN. Files get downloaded during the night on one computer and then need to be transfered to another. Usually I am doing this by hand, but then though maybe I could get...
General Discussion
Task Scheduler - Create Task to Display a Message Reminder
How to Display a Message Reminder in Windows with Task Scheduler This will show you how to create yourself, or another user or group, a message reminder scheduled to display for when and how often you like in Windows 7 or Vista using Task Scheduler. All users on the computer will be able to...
Tutorials
Task Scheduler : Create Shut Down PC Automatically Task
How to Create a Task that will Shut Down the PC Automatically This will show a very easy way to create a task in the Task Scheduler that will shut down the PC whenever you like. This will work for Windows 7 and Windows Vista. Let's get started! 1) In the Windows start menu search box type...
Tutorials
Task scheduler unable to load task status/active tasks at startup.
My task manager is unable to load task status/active tasks at startup. I get the message: "The selected task "{0}" no longer exists. To see the current tasks, click Refresh." When I refresh I get the same message. I checked and found that under Microsoft the problem was in the defrag...
Performance & Maintenance
What are these weird Tasks I found in Task Scheduler?
So after I fixed my "Windows 7 Home Security 2012" problem I've been doing additional scrubs through my system. I went to Task Scheduler to see what was there and ran across a couple of Tasks which I cannot identify. Anyone know what these are? All of the remaining tasks are known and legitimate.
System Security
Task Scheduler failing to start task with merged network locations
I have two routers I usually connect to (work and home) and each have wireless access. That means there are essentially 4 network locations I have listed. I have merged each respective network location (wired and wireless) into their own singular network location - "Work" and "Home". I also...
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 21:56.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App