Kernel32 Error Message in Task Scheduler (Mstask.exe) with Terminal Server Edition

This article was previously published under Q249860
This article has been archived. It is offered "as is" and will no longer be updated.
When you use the Task Scheduler tool (Mstask.exe) that is included in Internet Explorer 5 with Microsoft Windows NT Server 4.0, Terminal Server Edition, and a scheduled task is started either manually (by using the run command) or at a scheduled time, the following error message may be displayed on the console:
Initialization of the dynamic library system\system32\kernel32.dll failed. The process is terminating abnormally.
This behavior occurs because Mstask.exe creates scheduled tasks with CreateProcessAsUser(), and uses a token handle that refers to a handle to the access token of the current user shell. This is meaningless in Terminal Server and each access token has a logon ID so there is a logon ID mismatch.
To resolve this problem, obtain the latest service pack for Internet Explorer version 5.01. For additional information, click the following article number to view the article in theMicrosoft Knowledge Base:
267954 How to Obtain the Latest Internet Explorer 5.01 Service Pack
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Internet Explorer version 5.01 Service Pack 1.

Article ID: 249860 - Last Review: 01/10/2015 12:20:42 - Revision: 3.0

  • Microsoft Internet Explorer 5.01
  • Microsoft Internet Explorer 5.0
  • kbnosurvey kbarchive kbbug kberrmsg kbfix KB249860