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.

Large Kerberos tokens cause WinRM requests to fail


View products that this article applies to.

Source: Microsoft Support

↑ Back to the top


Rapid publishing

RAPID PUBLISHING ARTICLES PROVIDE INFORMATION DIRECTLY FROM WITHIN THE MICROSOFT SUPPORT ORGANIZATION. THE INFORMATION CONTAINED HEREIN IS CREATED IN RESPONSE TO EMERGING OR UNIQUE TOPICS, OR IS INTENDED SUPPLEMENT OTHER KNOWLEDGE BASE INFORMATION.

↑ Back to the top


Symptom



Problem environment:
  • Windows Remote Management (WinRM) installed on the client and server.
  • Users security tokens that are > 16k due to the way their domain is configured.
  • Client initiates a WinRM operation to the server (for instance WinRM id �r:<server>).


With WinRM 1.1 installed in client the following error will be seen:

WSManFault
Message = The WinRM client cannot process the request. It cannot determine the content type of the HTTP response from the destination computer. The content type is absent or invalid.

Error number: -2144108297 0x803380F7
The WinRM client cannot process the request. It cannot determine the content type of the HTTP response from the destination computer. The content type is absent or invalid.

For WinRM 2.0 may return a different error about a request header being too long.

↑ Back to the top


Cause

In some domain environments the user may be a member of so many security groups that the security token used to authenticate the user to the server may be > 16k. This is causing either http.sys or WinRM server to reject the request.

↑ Back to the top


Resolution



Install WinRM 2.0 or above on the server, then modify the following two registry keys that are described in http://support.microsoft.com/kb/820129
  • MaxFieldLength
  • MaxRequestBytes


Reboot the machine to make sure both http.sys and WinRM pick up the changes or restart the http and winrm services.

Note�The MaxRequestBytes field should not be made too large as it could adversely affect the memory usage on the machine. The default is 16K and this should be increased to maybe 20K to see if that fixes the problem before growing it in similar increments.

If these registry keys are modified but WinRM 1.1 is still installed then the problem will not be fixed, but it is likely that different error messages are returned to the client.

↑ Back to the top


Disclaimer

MICROSOFT AND/OR ITS SUPPLIERS MAKE NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY, RELIABILITY OR ACCURACY OF THE INFORMATION CONTAINED IN THE DOCUMENTS AND RELATED GRAPHICS PUBLISHED ON THIS WEBSITE (THE �MATERIALS�) FOR ANY PURPOSE. THE MATERIALS MAY INCLUDE TECHNICAL INACCURACIES OR TYPOGRAPHICAL ERRORS AND MAY BE REVISED AT ANY TIME WITHOUT NOTICE.

TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, MICROSOFT AND/OR ITS SUPPLIERS DISCLAIM AND EXCLUDE ALL REPRESENTATIONS, WARRANTIES, AND CONDITIONS WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO REPRESENTATIONS, WARRANTIES, OR CONDITIONS OF TITLE, NON INFRINGEMENT, SATISFACTORY CONDITION OR QUALITY, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, WITH RESPECT TO THE MATERIALS.

↑ Back to the top


Keywords: kbrapidpub, kbnomt, KB970875

↑ Back to the top

Article Info
Article ID : 970875
Revision : 3
Created on : 8/12/2009
Published on : 8/12/2009
Exists online : False
Views : 649