Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

A scheduled task is suspended unexpectedly, and the operating system resumes sleep when you select the "Wake the computer to run this task" option in Windows Vista or in Windows Server 2008


View products that this article applies to.

Symptoms

In Windows Vista or Windows Server 2008, you create a task in Task Scheduler, and then you select the Wake the computer to run this task option. This option makes sure that the computer wakes up from sleep or from hibernation to run the task. In this scenario, the scheduled task wakes up the computer as scheduled. However, 120 seconds later, the operating system resumes sleep or hibernation even if the scheduled task is running. Therefore, the scheduled task is suspended unexpectedly.

Note The issue does not occur if the scheduled task calls the SetThreadExecutionState() function.

↑ Back to the top


Resolution

To resolve this problem, apply the following hotfix. After you apply the hotfix, when a job that includes the Wake the computer to run this task option starts, Task Scheduler calls the SetThreadExecutionState function to indicate that the Task Scheduler is busy. After the job ends, Task Scheduler calls the SetThreadExecutionState function to clear the ES_CONTINUOUS flag and to reset the system idle timer. Therefore, the system does not resume sleep unexpectedly while the task is running.

Hotfix information

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing the problem described in this article. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site: Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

Important Windows Vista and Windows Server 2008 hotfixes are included in the same packages. However, only one of these products may be listed on the �Hotfix Request� page. To request the hotfix package that applies to both Windows Vista and Windows Server 2008, just select the product that is listed on the page.

Prerequisites

To apply this hotfix on a Windows Vista-based computer, you must have Windows Vista service pack 1 (SP1) installed. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
935791 How to obtain the latest Windows Vista service pack
No prerequisites are required for Windows Server 2008-based computers.

Restart requirement

You must restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace any other hotfixes.

File information

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
Windows Vista and Windows Server 2008 file information notes
The .manifest files and the .mum files that are installed in each environment are listed separately in the "Additional file information for Windows Server 2008 and for Windows Vista" section. These files and their associated .cat (security catalog) files are critical to maintaining the state of the updated component. The .cat files are signed with a Microsoft digital signature. The attributes of these security files are not listed.
For all supported x86-based versions of Windows Server 2008 and Windows Vista
File nameFile versionFile sizeDateTimePlatform
Tmm.dll6.0.6001.223921,298,43206-Mar-200904:31x86
Taskeng.exe6.0.6001.22392169,98406-Mar-200902:03x86
Taskeng.mofNot Applicable2,25418-Dec-200721:21Not Applicable
Schedsvc.dll6.0.6001.22392597,50406-Mar-200904:30x86
Schedsvc.mofNot Applicable2,25018-Dec-200721:20Not Applicable
For all supported x64-based versions of Windows Server 2008 and Windows Vista
File nameFile versionFile sizeDateTimePlatform
Tmm.dll6.0.6001.223921,319,42406-Mar-200904:58x64
Taskeng.exe6.0.6001.22392265,21606-Mar-200902:38x64
Taskeng.mofNot Applicable2,25418-Dec-200721:21Not Applicable
Schedsvc.dll6.0.6001.22392844,80006-Mar-200904:58x64
Schedsvc.mofNot Applicable2,25018-Dec-200721:21Not Applicable
Schedsvc.mofNot Applicable2,25018-Dec-200721:20Not Applicable
For all supported IA-64-based versions of Windows Server 2008
File nameFile versionFile sizeDateTimePlatform
Taskeng.exe6.0.6001.22392518,65606-Mar-200902:25IA-64
Taskeng.mofNot Applicable2,25418-Dec-200721:22Not Applicable
Schedsvc.dll6.0.6001.223921,396,73606-Mar-200904:46IA-64
Schedsvc.mofNot Applicable2,25018-Dec-200721:22Not Applicable
Schedsvc.mofNot Applicable2,25018-Dec-200721:20Not Applicable

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


More information

For more information about the SetThreadExecutionState function, visit the following Microsoft Web site: For more information about the Windows Vista Task Scheduler, visit the following Microsoft Web site:For more information about system sleep criteria, visit the following Microsoft Web site:

Additional file information for Windows Server 2008 and for Windows Vista

Additional files for all supported x86-based versions of Windows Server 2008 and Windows Vista
File namePackage_for_kb957473_client_1~31bf3856ad364e35~x86~~6.0.3.0.mum
File versionNot Applicable
File size1,803
Date (UTC)09-Mar-2009
Time (UTC)22:33
PlatformNot Applicable
File namePackage_for_kb957473_client~31bf3856ad364e35~x86~~6.0.3.0.mum
File versionNot Applicable
File size1,431
Date (UTC)09-Mar-2009
Time (UTC)22:33
PlatformNot Applicable
File namePackage_for_kb957473_sc_0~31bf3856ad364e35~x86~~6.0.3.0.mum
File versionNot Applicable
File size1,422
Date (UTC)09-Mar-2009
Time (UTC)22:33
PlatformNot Applicable
File namePackage_for_kb957473_sc~31bf3856ad364e35~x86~~6.0.3.0.mum
File versionNot Applicable
File size1,423
Date (UTC)09-Mar-2009
Time (UTC)22:33
PlatformNot Applicable
File namePackage_for_kb957473_server_0~31bf3856ad364e35~x86~~6.0.3.0.mum
File versionNot Applicable
File size1,425
Date (UTC)09-Mar-2009
Time (UTC)22:33
PlatformNot Applicable
File namePackage_for_kb957473_server~31bf3856ad364e35~x86~~6.0.3.0.mum
File versionNot Applicable
File size1,431
Date (UTC)09-Mar-2009
Time (UTC)22:33
PlatformNot Applicable
File nameX86_6b0843a6f5095174f24afd1066a661bd_31bf3856ad364e35_6.0.6001.22392_none_f4b93da6d85b617f.manifest
File versionNot Applicable
File size709
Date (UTC)09-Mar-2009
Time (UTC)22:33
PlatformNot Applicable
File nameX86_6b912534b85df78120249cdd50f08f4c_31bf3856ad364e35_6.0.6001.22392_none_1abd36504d25aed9.manifest
File versionNot Applicable
File size708
Date (UTC)09-Mar-2009
Time (UTC)22:33
PlatformNot Applicable
File nameX86_d55a14d97599a8fb1a90c08799fea493_31bf3856ad364e35_6.0.6001.22392_none_c161863a106cc9b5.manifest
File versionNot Applicable
File size700
Date (UTC)09-Mar-2009
Time (UTC)22:33
PlatformNot Applicable
File nameX86_microsoft-windows-mobilepc-tmm_31bf3856ad364e35_6.0.6001.22392_none_14898dced8b6c0ab.manifest
File versionNot Applicable
File size10,104
Date (UTC)06-Mar-2009
Time (UTC)04:52
PlatformNot Applicable
File nameX86_microsoft-windows-taskscheduler-engine_31bf3856ad364e35_6.0.6001.22392_none_e5d69f0dd83f3596.manifest
File versionNot Applicable
File size8,325
Date (UTC)06-Mar-2009
Time (UTC)04:59
PlatformNot Applicable
File nameX86_microsoft-windows-taskscheduler-service_31bf3856ad364e35_6.0.6001.22392_none_2f2b7070b06740f7.manifest
File versionNot Applicable
File size116,561
Date (UTC)06-Mar-2009
Time (UTC)04:59
PlatformNot Applicable
Additional files for all supported x64-based versions of Windows Server 2008 and Windows Vista
File nameAmd64_4d74018495c672ecb02283562e4ce9ff_31bf3856ad364e35_6.0.6001.22392_none_b9173658b662a692.manifest
File versionNot Applicable
File size1,068
Date (UTC)09-Mar-2009
Time (UTC)22:33
PlatformNot Applicable
File nameAmd64_719cea3bcb4e374195326a33d4311384_31bf3856ad364e35_6.0.6001.22392_none_6a207756806619f0.manifest
File versionNot Applicable
File size1,048
Date (UTC)09-Mar-2009
Time (UTC)22:33
PlatformNot Applicable
File nameAmd64_77c6c5a795879fe61c18df3664feb8be_31bf3856ad364e35_6.0.6001.22392_none_6ccd432ccd0cd400.manifest
File versionNot Applicable
File size1,064
Date (UTC)09-Mar-2009
Time (UTC)22:33
PlatformNot Applicable
File nameAmd64_microsoft-windows-mobilepc-tmm_31bf3856ad364e35_6.0.6001.22392_none_70a82952911431e1.manifest
File versionNot Applicable
File size10,444
Date (UTC)06-Mar-2009
Time (UTC)05:18
PlatformNot Applicable
File nameAmd64_microsoft-windows-taskscheduler-engine_31bf3856ad364e35_6.0.6001.22392_none_41f53a91909ca6cc.manifest
File versionNot Applicable
File size8,359
Date (UTC)06-Mar-2009
Time (UTC)05:30
PlatformNot Applicable
File nameAmd64_microsoft-windows-taskscheduler-service_31bf3856ad364e35_6.0.6001.22392_none_8b4a0bf468c4b22d.manifest
File versionNot Applicable
File size116,603
Date (UTC)06-Mar-2009
Time (UTC)05:29
PlatformNot Applicable
File namePackage_for_kb957473_client_1~31bf3856ad364e35~amd64~~6.0.3.0.mum
File versionNot Applicable
File size1,815
Date (UTC)09-Mar-2009
Time (UTC)22:33
PlatformNot Applicable
File namePackage_for_kb957473_client~31bf3856ad364e35~amd64~~6.0.3.0.mum
File versionNot Applicable
File size1,439
Date (UTC)09-Mar-2009
Time (UTC)22:33
PlatformNot Applicable
File namePackage_for_kb957473_sc_0~31bf3856ad364e35~amd64~~6.0.3.0.mum
File versionNot Applicable
File size1,430
Date (UTC)09-Mar-2009
Time (UTC)22:33
PlatformNot Applicable
File namePackage_for_kb957473_sc~31bf3856ad364e35~amd64~~6.0.3.0.mum
File versionNot Applicable
File size1,431
Date (UTC)09-Mar-2009
Time (UTC)22:33
PlatformNot Applicable
File namePackage_for_kb957473_server_0~31bf3856ad364e35~amd64~~6.0.3.0.mum
File versionNot Applicable
File size1,433
Date (UTC)09-Mar-2009
Time (UTC)22:33
PlatformNot Applicable
File namePackage_for_kb957473_server~31bf3856ad364e35~amd64~~6.0.3.0.mum
File versionNot Applicable
File size1,439
Date (UTC)09-Mar-2009
Time (UTC)22:33
PlatformNot Applicable
File nameWow64_microsoft-windows-taskscheduler-service_31bf3856ad364e35_6.0.6001.22392_none_959eb6469d257428.manifest
File versionNot Applicable
File size108,847
Date (UTC)06-Mar-2009
Time (UTC)04:40
PlatformNot Applicable
Additional files for all supported IA-64-based versions of Windows Server 2008
File nameIa64_59ad8efdb072d0fb1755f8d02cef9532_31bf3856ad364e35_6.0.6001.22392_none_f9cef2a8021905ca.manifest
File versionNot Applicable
File size1,062
Date (UTC)09-Mar-2009
Time (UTC)22:33
PlatformNot Applicable
File nameIa64_6eddc967a9902966ca829fc492934739_31bf3856ad364e35_6.0.6001.22392_none_385ebbc7012e464a.manifest
File versionNot Applicable
File size1,066
Date (UTC)09-Mar-2009
Time (UTC)22:33
PlatformNot Applicable
File nameIa64_microsoft-windows-taskscheduler-engine_31bf3856ad364e35_6.0.6001.22392_none_e5d84303d83d3e92.manifest
File versionNot Applicable
File size8,342
Date (UTC)06-Mar-2009
Time (UTC)06:04
PlatformNot Applicable
File nameIa64_microsoft-windows-taskscheduler-service_31bf3856ad364e35_6.0.6001.22392_none_2f2d1466b06549f3.manifest
File versionNot Applicable
File size116,582
Date (UTC)06-Mar-2009
Time (UTC)06:04
PlatformNot Applicable
File namePackage_for_kb957473_sc_0~31bf3856ad364e35~ia64~~6.0.3.0.mum
File versionNot Applicable
File size1,425
Date (UTC)09-Mar-2009
Time (UTC)22:33
PlatformNot Applicable
File namePackage_for_kb957473_sc~31bf3856ad364e35~ia64~~6.0.3.0.mum
File versionNot Applicable
File size1,426
Date (UTC)09-Mar-2009
Time (UTC)22:33
PlatformNot Applicable
File namePackage_for_kb957473_server_0~31bf3856ad364e35~ia64~~6.0.3.0.mum
File versionNot Applicable
File size1,429
Date (UTC)09-Mar-2009
Time (UTC)22:33
PlatformNot Applicable
File namePackage_for_kb957473_server~31bf3856ad364e35~ia64~~6.0.3.0.mum
File versionNot Applicable
File size1,434
Date (UTC)09-Mar-2009
Time (UTC)22:33
PlatformNot Applicable
File nameWow64_microsoft-windows-taskscheduler-service_31bf3856ad364e35_6.0.6001.22392_none_959eb6469d257428.manifest
File versionNot Applicable
File size108,847
Date (UTC)06-Mar-2009
Time (UTC)04:40
PlatformNot Applicable

↑ Back to the top


Keywords: kbautohotfix, kbexpertiseinter, kbfix, kbbug, kbsurveynew, kbqfe, KB957473

↑ Back to the top

Article Info
Article ID : 957473
Revision : 2
Created on : 10/8/2011
Published on : 10/8/2011
Exists online : False
Views : 368