Tech Community Live: Windows edition
Jun 05 2024, 07:30 AM - 11:30 AM (PDT)
Microsoft Tech Community

Windows 11 Enabling Remote Desktop using Powershell & disabling NLA

Copper Contributor

When I attempt to run the following command to enable RDP & disable NLA in powershell, it only updates in "System Properties --> Remote". It doesn't update in the Settings App under Remote desktop settings.

Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server' -name 'fDenyTSConnections' -value 0"
Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -Name 'UserAuthentication' -Value 0"

2 Replies
This is also happening in Windows 10 21H2.
Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -Name 'SecurityLayer' -Value 0