add MaxTokenSize registry entry - Windows Server (2024)

  • Article

This article describes how to use Group Policy to add the MaxTokenSize registry entry to multiple computers.

Original KB number: 938118

Introduction

On a domain controller that is running Windows Server 2003, Windows Server 2008, Windows Server 2008 R2, or Windows Server 2012, you can use Group Policy to add the following registry entry to multiple computers:

Key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\Kerberos\Parameters
Entry: MaxTokenSize
Data type: REG_DWORD
Value: 48000

This article describes how to do it, so that you can push this setting to all members of your domains easily. The process is different, depending on the version of Windows Server that the domain controller is running.

Note

The maximum allowed value of MaxTokenSize is 65535 bytes. However, because of HTTP's base64 encoding of authentication context tokens, we do not recommend that you set the maxTokenSize registry entry to a value larger than 48000 bytes. Starting with Windows Server 2012, the default value of the MaxTokenSize registry entry is 48000 bytes.

More information

How to configure MaxTokenSize by using Group Policy Object (GPO) in Windows Server 2003

To add the registry entry to multiple computers in a domain that does not have a Windows Server 2012-based domain controller, follow these steps:

  1. Create an Administrative Template (ADM) file for the MaxTokenSize registry entry. To do it, follow these steps:

    1. Start Notepad.

    2. Copy the following text, and then paste the text into Notepad:

      CLASS MACHINE

      CATEGORY !!KERB

      KEYNAME "SYSTEM\CurrentControlSet\Control\Lsa\Kerberos\Parameters"
      POLICY !!MaxToken
      VALUENAME "MaxTokenSize"
      VALUEON NUMERIC 48000
      VALUEOFF NUMERIC 0
      END POLICY

      END CATEGORY

      [strings]
      KERB="Kerberos Maximum Token Size"
      MaxToken="Kerberos MaxTokenSize"

      Note

      The value of the MaxTokenSize registry entry is set to 48000. This is the suggested value.

    3. Save the Notepad document as MaxTokenSize.adm in the %windir%\Inf\ folder on the domain controller that you will use to configure the GPO to deploy the setting.

    4. Exit Notepad.

  2. Import the ADM into a GPO and set the MaxTokenSize registry entry to the desired value. To do it, follow these steps:

    1. Create a new Group Policy Object (GPO) that is linked at the domain level or that is linked to the organizational unit (OU) that contains your computer accounts. Or, select a GPO that is already deployed.

    2. Open the Group Policy Object Editor. To do it, click Start, click Run, type gpedit.msc, and then click OK.

    3. In the console tree, expand Computer Configuration, expand Administrative Templates, and then click Administrative Templates.

    4. On the Action menu, point to All Tasks, and then click Add/Remove Templates.

    5. Click Add.

    6. Click to select the MaxTokenSize.adm file that you created in step 1, and then click Open.

    7. Click Close.

    8. On the View Menu, click Filtering.

    9. Click to clear the Only show policy settings that can be fully managed check box, and then click OK.

    10. Expand Administrative Templates, and then click Kerberos Maximum Token Size.

    11. Right-click Kerberos MaxTokenSize in the right-side pane, then click Properties to open the Properties dialog box.

    12. Click Enabled, and then click OK.

      Note

      For the GPO take effect, the GPO change must be replicated to all domain controllers in the domain, and affected computers must be restarted after the policy is applied to them.

How to configure the MaxTokenSize registry entry by using GPO in Windows Server 2008 and in Windows Server 2008 R2

In Windows Server 2008 domains and in Windows Server 2008 R2 domains, you can use the Registry Client-Side Extension to deploy the MaxTokenSize registry value to multiple computers in a domain. To create the MaxTokenSize value setting in a GPO, follow these steps:

  1. Click Start, click Run, type gpmc.msc, and then click OK to open the Group Policy Management Console.
  2. In the Group Policy Management Console, create a new GPO that is linked at the domain level or that is linked to the OU that contains your computer accounts. Or you can select a GPO that is already deployed.
  3. Right-click the GPO, and then click Edit to open the Group Policy Management Editor window.
  4. Expand Computer Configuration, expand Preferences, and then expand Windows Settings.
  5. Right-click Registry, point to New, and then click Registry Item. The New Registry Properties dialog box appears.
  6. In the Action list, click Create.
  7. In the Hive list, click HKEY_LOCAL_MACHINE.
  8. In the Key Path list, click SYSTEM\CurrentControlSet\Control\Lsa\Kerberos\Parameters.
  9. In the Value name box, type MaxTokenSize.
  10. In the Value type box, click to select the REG_DWORD check box.
  11. In the Value data box, type 48000.
  12. Next to Base, click to select the Decimal check box.
  13. Click OK.

Note

For the GPO take effect, the GPO change must be replicated to all domain controllers in the domain, and affected computers must be restarted after they apply the policy.

How to configure the MaxTokenSize registry entry by using GPO in Windows Server 2012

To deploy the value of the MaxTokenSize registry entry in a domain that has Windows Server 2012-based domain controllers, follow these steps:

  1. Open Server Manager, click Tools, and then click Group Policy Management to open the Group Policy Management console.
  2. In the Group Policy Management Console, create a new GPO that is linked at the domain level or that is linked to the OU that contains your computer accounts. Or, select a GPO that is already deployed.
  3. Right-click the GPO, and then click Edit to open the Group Policy Management Editor window.
  4. Expand Computer Configuration, expand Policies, and then expand Administrative Templates.
  5. Expand System, and then click Kerberos.
  6. Right-click Set maximum Kerberos SSPI context token buffer size on the right side pane, and then click Edit.
  7. Click Enabled, and then type 48000 in the Maximum size box.
  8. Click OK.

Note

  • For the GPO take effect, the GPO change must be replicated to all domain controllers in the domain, and affected computers must be restarted after they apply the policy.

  • The Set maximum Kerberos SSPI context token buffer size policy setting is added in Windows Server 2012 and in Windows 8. The policy setting is supported in Windows XP, in Windows Server 2003, in Windows Vista, in Windows Server 2008, in Windows 7, and in Windows Server 2008 R2. To use this Group Policy setting, you must edit the GPO in a version of Windows Server 2012 or in Windows 8 that has the RSAT tools installed.

References

For more information about the MaxTokenSize registry entry, click the following article number to view the article in the Microsoft Knowledge Base:
327825 New resolution for problems with Kerberos authentication when users belong to many groups

add MaxTokenSize registry entry - Windows Server (2024)
Top Articles
How Many Ex-Boyfriends Does Taylor Swift Have? Dating History Explored
5 Reasons Why Your Credit Score Is Important | Axos Bank
Netronline Taxes
Victor Spizzirri Linkedin
Warren Ohio Craigslist
Trevor Goodwin Obituary St Cloud
12 Rue Gotlib 21St Arrondissem*nt
Practical Magic 123Movies
Bustle Daily Horoscope
Rainfall Map Oklahoma
What’s the Difference Between Cash Flow and Profit?
Used Wood Cook Stoves For Sale Craigslist
Everything You Need to Know About Holly by Stephen King
Zürich Stadion Letzigrund detailed interactive seating plan with seat & row numbers | Sitzplan Saalplan with Sitzplatz & Reihen Nummerierung
Leeks — A Dirty Little Secret (Ingredient)
Craiglist Kpr
使用 RHEL 8 时的注意事项 | Red Hat Product Documentation
Uta Kinesiology Advising
The Blind Showtimes Near Amc Merchants Crossing 16
Stoney's Pizza & Gaming Parlor Danville Menu
67-72 Chevy Truck Parts Craigslist
Www Va Lottery Com Result
2000 Ford F-150 for sale - Scottsdale, AZ - craigslist
Margaret Shelton Jeopardy Age
10 Best Quotes From Venom (2018)
WOODSTOCK CELEBRATES 50 YEARS WITH COMPREHENSIVE 38-CD DELUXE BOXED SET | Rhino
County Cricket Championship, day one - scores, radio commentary & live text
R/Orangetheory
Donald Trump Assassination Gold Coin JD Vance USA Flag President FIGHT CIA FBI • $11.73
Emiri's Adventures
Wbli Playlist
Tenant Vs. Occupant: Is There Really A Difference Between Them?
Oreillys Federal And Evans
AsROck Q1900B ITX und Ramverträglichkeit
Build-A-Team: Putting together the best Cathedral basketball team
Toonily The Carry
World History Kazwire
Frcp 47
Metro Pcs Forest City Iowa
Differential Diagnosis
Foxxequeen
Gli italiani buttano sempre più cibo, quasi 7 etti a settimana (a testa)
What is a lifetime maximum benefit? | healthinsurance.org
New Zero Turn Mowers For Sale Near Me
De boeken van Val McDermid op volgorde
Roller Znen ZN50QT-E
Diesel Technician/Mechanic III - Entry Level - transportation - job employment - craigslist
Epower Raley's
What Responsibilities Are Listed In Duties 2 3 And 4
Ranking 134 college football teams after Week 1, from Georgia to Temple
Latest Posts
Article information

Author: Ray Christiansen

Last Updated:

Views: 6262

Rating: 4.9 / 5 (49 voted)

Reviews: 80% of readers found this page helpful

Author information

Name: Ray Christiansen

Birthday: 1998-05-04

Address: Apt. 814 34339 Sauer Islands, Hirtheville, GA 02446-8771

Phone: +337636892828

Job: Lead Hospitality Designer

Hobby: Urban exploration, Tai chi, Lockpicking, Fashion, Gunsmithing, Pottery, Geocaching

Introduction: My name is Ray Christiansen, I am a fair, good, cute, gentle, vast, glamorous, excited person who loves writing and wants to share my knowledge and understanding with you.