Microsoft KB Archive/935761

= Error message when you try to log on to a Telnet server that is running Windows Server 2003 with Service Pack 1 or with Service Pack 2: &quot;Failure in initializing the telnet session&quot; =

Article ID: 935761

Article Last Modified on 10/11/2007

-

APPLIES TO

 Microsoft Windows Server 2003 SP1, when used with:  Microsoft Windows Server 2003, Standard Edition (32-bit x86)

 Microsoft Windows Server 2003, Web Edition

 Microsoft Windows Server 2003, Enterprise x64 Edition

 Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)</li></ul>

 Microsoft Windows Server 2003, Enterprise Edition for Itanium-based Systems</li></ul>

 Microsoft Windows Server 2003, Datacenter Edition for Itanium-Based Systems</li></ul> </li> Microsoft Windows Server 2003 Service Pack 2, when used with:  Microsoft Windows Server 2003, Standard Edition (32-bit x86)</li></ul>

 Microsoft Windows Server 2003, Web Edition</li></ul>

 Microsoft Windows Server 2003, Enterprise Edition</li></ul>

 Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)</li></ul>

 Microsoft Windows Server 2003, Standard x64 Edition</li></ul>

 <li>Microsoft Windows Server 2003, Enterprise x64 Edition</li></ul>

<ul> <li>Microsoft Windows Server 2003, Datacenter x64 Edition</li></ul>

<ul> <li>Microsoft Windows Server 2003, Enterprise Edition for Itanium-based Systems</li></ul>

<ul> <li>Microsoft Windows Server 2003, Datacenter Edition for Itanium-Based Systems</li></ul> </li> <li>Microsoft Windows Server 2003, Standard x64 Edition</li> <li>Microsoft Windows Server 2003, Enterprise x64 Edition</li> <li>Microsoft Windows Server 2003, Datacenter x64 Edition</li> <li>Microsoft Windows XP Professional x64 Edition</li></ul>

-

<div class="symptoms_section">

SYMPTOMS
When you try to log on to a Telnet server that is running Microsoft Windows Server 2003 with Service Pack 1 or with Service Pack 2, you receive the following error message:

Failure in initializing the telnet session. Shell process may not have been launched.

Telnet Server has closed the connection

Additionally, the following event is logged in the Application event log on the Telnet server: Event Type: Error

Event Source: TlntSvr

Event Category: None

Event ID: 4049

User: N/A

Description:

Error in creating CMD process.

System Error: The stub received bad data.

This problem occurs if the user account that you use to log on to the Telnet server has more than 5,120 characters in the environment variables.

<div class="cause_section">

CAUSE
This problem occurs because of a behavior in the Seclogon.dll file on the Telnet server. If the environment variables that are specified in the function contain more than 5,120 characters, the Seclogon.dll file returns an error to the CreateProcessWithTokenW function.

<div class="resolution_section">

Hotfix information
A supported hotfix is now available from Microsoft. However, it is intended to correct only the problem that is described in this article. Apply it only to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next Windows Server 2003 service pack that contains this hotfix.

To resolve this problem immediately, contact Microsoft Customer Support Services to obtain the hotfix. For a complete list of Microsoft Customer Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=support

Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

Prerequisites
To apply this hotfix, you must have Windows Server 2003 Service Pack 1 or Windows Server 2003 Service Pack 2 installed on the computer. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

889100 How to obtain the latest service pack for Windows Server 2003

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 Server 2003 with Service Pack 2, x64-based versions
<div class="workaround_section">

WORKAROUND
To work around this problem, limit the environment variables that are used by the user account to fewer than 5,120 characters.

<div class="status_section">

STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.

<div class="moreinformation_section">

MORE INFORMATION
According to Microsoft Developer Network documentation, the total size of the environment block for a process cannot exceed 32,767 characters. For more information, visit the following Microsoft Web site:

http://msdn2.microsoft.com/en-us/library/ms686206.aspx

For more information about the standard terminology that is used to describe Microsoft software updates, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates

Additional query words: telnet logon to windows 2003 sp1 sp2 fails

Keywords: kbbug kbfix kbqfe kbpubtypekc kbexpertiseinter kbhotfixserver kbwinserv2003postsp2fix KB935761

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.