{"id":5150,"date":"2024-08-22T08:34:53","date_gmt":"2024-08-22T15:34:53","guid":{"rendered":"https:\/\/SUMMALAI.COM\/?p=5150"},"modified":"2024-08-22T08:36:30","modified_gmt":"2024-08-22T15:36:30","slug":"how-to-enable-or-disable-rdp-nla-from-powershell-windows-server-2016-2019-2022","status":"publish","type":"post","link":"https:\/\/SUMMALAI.COM\/?p=5150","title":{"rendered":"How to Enable or Disable RDP NLA from PowerShell Windows Server 2016\/2019\/2022"},"content":{"rendered":"\n<p>By default, you might find RDP firewall rules disabled, which prevent RDP connections to the server. To enable preset firewall rules of RemoteDesktop, use the following PowerShell command:<\/p>\n\n\n\n<p><strong>Enable-NetFirewallRule -DisplayGroup &#8216;Remote Desktop&#8217;<\/strong><\/p>\n\n\n\n<p>or from CMD, append powershell.exe in the beginning:<\/p>\n\n\n\n<p><strong>powershell.exe Enable-NetFirewallRule -DisplayGroup &#8216;Remote Desktop&#8217;<\/strong><\/p>\n\n\n\n<p>To disable RDP Network Level Authentication (NLA), use the following PowerShell command:<\/p>\n\n\n\n<p><strong>Set-ItemProperty &#8216;HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Terminal Server\\WinStations\\RDP-Tcp\\&#8217; -Name &#8220;UserAuthentication&#8221; -value 0<\/strong><\/p>\n\n\n\n<p>or from CMD, append powershell.exe in the beginning:<\/p>\n\n\n\n<p><strong>powershell.exe Set-ItemProperty &#8216;HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Terminal Server\\WinStations\\RDP-Tcp\\&#8217; -Name &#8220;UserAuthentication&#8221; -value 0<\/strong><\/p>\n\n\n\n<p>If RDP is disabled from the settings, you can enable RDP using the following PowerShell command:<\/p>\n\n\n\n<p><strong>Set-ItemProperty -Path &#8216;HKLM:\\System\\CurrentControlSet\\Control\\Terminal Server&#8217; -name &#8220;fDenyTSConnections&#8221; -value 0<\/strong><\/p>\n\n\n\n<p>Ref: <a href=\"https:\/\/xotechy.com\/blog\/enable-rdp-firewall-rules-and-disable-rdp-nla-from-powershell-windows-server-2016-2019\/\">Enable RDP Firewall rules and disable RDP NLA from PowerShell Windows Server 2016\/2019 &#8211; XO Techy<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>By default, you might find RDP firewall rules disabled, which prevent RDP connections to the server. To enable preset firewall rules of RemoteDesktop, use the following PowerShell command: Enable-NetFirewallRule -DisplayGroup &#8216;Remote Desktop&#8217; or from CMD, append powershell.exe in the beginning: powershell.exe Enable-NetFirewallRule -DisplayGroup &#8216;Remote Desktop&#8217; To disable RDP Network Level Authentication (NLA), use the following <a class=\"read-more\" href=\"https:\/\/SUMMALAI.COM\/?p=5150\">Read More<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[10,15],"tags":[1813,1812],"class_list":["post-5150","post","type-post","status-publish","format-standard","hentry","category-microsoft","category-windows-servers","tag-disable-rdp-nla-from-powershell","tag-enable-rdp-nla-from-powershell"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts\/5150","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5150"}],"version-history":[{"count":2,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts\/5150\/revisions"}],"predecessor-version":[{"id":5153,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts\/5150\/revisions\/5153"}],"wp:attachment":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5150"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5150"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5150"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}