Configurar autenticação de servidor do cliente: valor do Registro AuthenticationLevelComputadorHKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
- ID da política
- TS_SERVER_AUTH
- Escopo
- Configuração do Computador
- Compatível com
- Windows Vista com Service Pack 1 ou posterior
- Fonte
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versão 1.0)
- Categoria
- Componentes do Windows › Serviços de Área de Trabalho Remota › Cliente de Conexão de Área de Trabalho Remota
Registro
AuthenticationLevel
REG_DWORDComputador- Valor habilitado
- Depende do valor da opção
- Elemento
- Configuração da autenticação:
| Item | Valor armazenado |
|---|---|
| Sempre conectar, mesmo que a autenticação falhe | 0 |
| Avisar-me se a autenticação falhar | 2 |
| Não conectar se a autenticação falhar | 1 |
Aplicar com .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services] ; Opções (use apenas uma) ; Sempre conectar, mesmo que a autenticação falhe "AuthenticationLevel"=dword:00000000 ; Avisar-me se a autenticação falhar "AuthenticationLevel"=dword:00000002 ; Não conectar se a autenticação falhar "AuthenticationLevel"=dword:00000001
CMD
:: Opções (use apenas uma) :: Sempre conectar, mesmo que a autenticação falhe reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "AuthenticationLevel" /t REG_DWORD /d 0 /f :: Avisar-me se a autenticação falhar reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "AuthenticationLevel" /t REG_DWORD /d 2 /f :: Não conectar se a autenticação falhar reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "AuthenticationLevel" /t REG_DWORD /d 1 /f
PowerShell
# Comum: criar a chave New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Force | Out-Null # Opções (use apenas uma) # Sempre conectar, mesmo que a autenticação falhe New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'AuthenticationLevel' -PropertyType DWord -Value 0 -Force | Out-Null # Avisar-me se a autenticação falhar New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'AuthenticationLevel' -PropertyType DWord -Value 2 -Force | Out-Null # Não conectar se a autenticação falhar New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'AuthenticationLevel' -PropertyType DWord -Value 1 -Force | Out-Null