Require use of specific security layer for remote (RDP) connections: registry value SecurityLayerComputerHKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
- Policy ID
- TS_SECURITY_LAYER_POLICY
- Scope
- Computer Configuration
- Supported on
- At least Windows Vista
- Source
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
- Category
- Windows Components › Remote Desktop Services › Remote Desktop Session Host › Security
Registry
SecurityLayer
REG_DWORDComputer- Enabled value
- Depends on the option value
- Element
- Security Layer
| Item | Stored value |
|---|---|
| RDP | 0 |
| Negotiate | 1 |
| SSL | 2 |
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services] ; Options (use only one) ; RDP "SecurityLayer"=dword:00000000 ; Negotiate "SecurityLayer"=dword:00000001 ; SSL "SecurityLayer"=dword:00000002
CMD
:: Options (use only one) :: RDP reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "SecurityLayer" /t REG_DWORD /d 0 /f :: Negotiate 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
# Common: create the key New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Force | Out-Null # Options (use only one) # RDP New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'SecurityLayer' -PropertyType DWord -Value 0 -Force | Out-Null # Negotiate 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