Definir tamanho máximo do buffer de token de contexto SSPI do Kerberos: valor do Registro EnableMaxTokenSize e mais 1ComputadorHKLM\System\CurrentControlSet\Control\Lsa\Kerberos\Parameters

ID da política
MaxTokenSize
Escopo
Configuração do Computador
Compatível com
Sistemas operacionais Windows Server 2003 e Windows XP Professional ou posterior
Fonte
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versão 1.0)
Categoria
Sistema › Kerberos

Registro

EnableMaxTokenSize

REG_DWORDComputador
Valor habilitado
1
Valor desabilitado
0
Aplicar com .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Lsa\Kerberos\Parameters]

; Opções (use apenas uma)
; Habilitada
"EnableMaxTokenSize"=dword:00000001
; Desabilitada
"EnableMaxTokenSize"=dword:00000000
CMD
:: Opções (use apenas uma)

:: Habilitada
reg add "HKLM\System\CurrentControlSet\Control\Lsa\Kerberos\Parameters" /v "EnableMaxTokenSize" /t REG_DWORD /d 1 /f
:: Desabilitada
reg add "HKLM\System\CurrentControlSet\Control\Lsa\Kerberos\Parameters" /v "EnableMaxTokenSize" /t REG_DWORD /d 0 /f
PowerShell
# Comum: criar a chave
New-Item -Path 'HKLM:\System\CurrentControlSet\Control\Lsa\Kerberos\Parameters' -Force | Out-Null

# Opções (use apenas uma)
# Habilitada
New-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Lsa\Kerberos\Parameters' -Name 'EnableMaxTokenSize' -PropertyType DWord -Value 1 -Force | Out-Null
# Desabilitada
New-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Lsa\Kerberos\Parameters' -Name 'EnableMaxTokenSize' -PropertyType DWord -Value 0 -Force | Out-Null

MaxTokenSize

REG_DWORDComputador
Valor habilitado
Depende do valor da opção
Elemento
Tamanho máximo
Tipo de valor
REG_DWORD
Obrigatório
true
Valor mínimo
12000
Valor máximo
2147483647
Aplicar com .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Lsa\Kerberos\Parameters]

; Nomes e tipos de valor seguem o ADMX. Substitua <inserir valor> abaixo pelos seus próprios dados
"MaxTokenSize"=dword:<inserir valor>
CMD
:: Nomes e tipos de valor seguem o ADMX. Substitua <inserir valor> abaixo pelos seus próprios dados

reg add "HKLM\System\CurrentControlSet\Control\Lsa\Kerberos\Parameters" /v "MaxTokenSize" /t REG_DWORD /d "<inserir valor>" /f
PowerShell
# Nomes e tipos de valor seguem o ADMX. Substitua <inserir valor> abaixo pelos seus próprios dados

New-Item -Path 'HKLM:\System\CurrentControlSet\Control\Lsa\Kerberos\Parameters' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Lsa\Kerberos\Parameters' -Name 'MaxTokenSize' -PropertyType DWord -Value '<inserir valor>' -Force | Out-Null