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