Solicitar o uso de camada de segurança específica para conexões remotas (RDP): valor do Registro SecurityLayerComputadorHKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services

ID da política
TS_SECURITY_LAYER_POLICY
Escopo
Configuração do Computador
Compatível com
Windows Vista 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 › Host de Sessão da Área de Trabalho Remota › Segurança

Registro

SecurityLayer

REG_DWORDComputador
Valor habilitado
Depende do valor da opção
Elemento
Camada de Segurança
Opções
ItemValor armazenado
RDP0
Negociar1
SSL2
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)
; RDP
"SecurityLayer"=dword:00000000
; Negociar
"SecurityLayer"=dword:00000001
; SSL
"SecurityLayer"=dword:00000002
CMD
:: Opções (use apenas uma)

:: RDP
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "SecurityLayer" /t REG_DWORD /d 0 /f
:: Negociar
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "SecurityLayer" /t REG_DWORD /d 1 /f
:: SSL
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "SecurityLayer" /t REG_DWORD /d 2 /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)
# RDP
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'SecurityLayer' -PropertyType DWord -Value 0 -Force | Out-Null
# Negociar
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'SecurityLayer' -PropertyType DWord -Value 1 -Force | Out-Null
# SSL
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'SecurityLayer' -PropertyType DWord -Value 2 -Force | Out-Null