Configure RDP Network Level Authentication via Regedit
Configuring Network Level Authentication (NLA) for Remote Desktop
Protocol (RDP) via the Windows Registry allows administrators to enforce
or disable pre-authentication security requirements locally or remotely
without using the standard graphical interface. This guide outlines the
exact registry keys, values, and steps needed to toggle NLA by modifying
the Windows Registry Editor (regedit.exe).
Required Registry Path and Values
To manage NLA settings, navigate to the following registry path:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp
Within this key, two specific DWORD (32-bit) values
dictate the NLA and security layer behavior:
UserAuthentication1= Enabled (Network Level Authentication is required).0= Disabled (Network Level Authentication is not required).
SecurityLayer0= Low (RDP encryption).1= Negotiate (Uses TLS if supported).2= High (SSL/TLS required; standard when NLA is enabled).
Step-by-Step Configuration via Registry Editor
Press Win + R, type
regedit, and press Enter to open the Registry Editor.Navigate to:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-TcpLocate the
UserAuthenticationvalue in the right pane:- Double-click
UserAuthentication, set the Value data to1to enable NLA, or0to disable NLA, and select Hexadecimal or Decimal (both work for 0 and 1). Click OK.
- Double-click
Locate the
SecurityLayervalue:- To fully enforce NLA, set
SecurityLayerto1or2. - If disabling NLA to troubleshoot legacy clients, set
SecurityLayerto0or1.
- To fully enforce NLA, set
Close the Registry Editor.
Applying the Changes
Registry changes to the RDP configuration take effect immediately after restarting the Remote Desktop service or rebooting the machine.
To restart the service via an elevated Command Prompt:
net stop TermService /y
net start TermServiceAlternatively, you can apply these registry values directly from an
elevated Command Prompt using the reg add command:
To Enable NLA:
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" /v UserAuthentication /t REG_DWORD /d 1 /f reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" /v SecurityLayer /t REG_DWORD /d 2 /fTo Disable NLA:
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" /v UserAuthentication /t REG_DWORD /d 0 /f reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" /v SecurityLayer /t REG_DWORD /d 1 /f