{"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,"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":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"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 &#039;Remote Desktop&#039; or from CMD, append powershell.exe in the beginning: powershell.exe Enable-NetFirewallRule -DisplayGroup &#039;Remote Desktop&#039; To disable RDP Network Level Authentication (NLA), use the following\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Summa Lai\"\/>\n\t<meta name=\"keywords\" content=\"disable rdp nla from powershell,enable rdp nla from powershell,microsoft family,windows servers\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/SUMMALAI.COM\/?p=5150\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?p=5150#article\",\"name\":\"How to Enable or Disable RDP NLA from PowerShell Windows Server 2016\\\/2019\\\/2022 | Summa Lai\",\"headline\":\"How to Enable or Disable RDP NLA from PowerShell Windows Server 2016\\\/2019\\\/2022\",\"author\":{\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?author=2#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?p=5150#articleImage\",\"url\":\"https:\\\/\\\/SUMMALAI.COM\\\/wp-content\\\/uploads\\\/2020\\\/05\\\/Summa_Logo-150x150.png\",\"width\":96,\"height\":96,\"caption\":\"Summa Lai\"},\"datePublished\":\"2024-08-22T08:34:53-07:00\",\"dateModified\":\"2024-08-22T08:36:30-07:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?p=5150#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?p=5150#webpage\"},\"articleSection\":\"Microsoft Family, Windows Servers, Disable RDP NLA from PowerShell, Enable RDP NLA from PowerShell\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?p=5150#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/SUMMALAI.COM\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?cat=10#listItem\",\"name\":\"Microsoft Family\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?cat=10#listItem\",\"position\":2,\"name\":\"Microsoft Family\",\"item\":\"https:\\\/\\\/SUMMALAI.COM\\\/?cat=10\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?cat=15#listItem\",\"name\":\"Windows Servers\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?cat=15#listItem\",\"position\":3,\"name\":\"Windows Servers\",\"item\":\"https:\\\/\\\/SUMMALAI.COM\\\/?cat=15\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?p=5150#listItem\",\"name\":\"How to Enable or Disable RDP NLA from PowerShell Windows Server 2016\\\/2019\\\/2022\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?cat=10#listItem\",\"name\":\"Microsoft Family\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?p=5150#listItem\",\"position\":4,\"name\":\"How to Enable or Disable RDP NLA from PowerShell Windows Server 2016\\\/2019\\\/2022\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?cat=15#listItem\",\"name\":\"Windows Servers\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/#person\",\"name\":\"sladmin\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?p=5150#personImage\",\"url\":\"https:\\\/\\\/SUMMALAI.COM\\\/wp-content\\\/uploads\\\/2020\\\/05\\\/Summa_Logo-150x150.png\",\"width\":96,\"height\":96,\"caption\":\"sladmin\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?author=2#author\",\"url\":\"https:\\\/\\\/SUMMALAI.COM\\\/?author=2\",\"name\":\"Summa Lai\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?p=5150#authorImage\",\"url\":\"https:\\\/\\\/SUMMALAI.COM\\\/wp-content\\\/uploads\\\/2020\\\/05\\\/Summa_Logo-150x150.png\",\"width\":96,\"height\":96,\"caption\":\"Summa Lai\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?p=5150#webpage\",\"url\":\"https:\\\/\\\/SUMMALAI.COM\\\/?p=5150\",\"name\":\"How to Enable or Disable RDP NLA from PowerShell Windows Server 2016\\\/2019\\\/2022 | Summa Lai\",\"description\":\"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 'Remote Desktop' or from CMD, append powershell.exe in the beginning: powershell.exe Enable-NetFirewallRule -DisplayGroup 'Remote Desktop' To disable RDP Network Level Authentication (NLA), use the following\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?p=5150#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?author=2#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/?author=2#author\"},\"datePublished\":\"2024-08-22T08:34:53-07:00\",\"dateModified\":\"2024-08-22T08:36:30-07:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/#website\",\"url\":\"https:\\\/\\\/SUMMALAI.COM\\\/\",\"name\":\"Summa Lai\",\"description\":\"Never Stop Learning, Building a Little Wiki...\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/SUMMALAI.COM\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"How to Enable or Disable RDP NLA from PowerShell Windows Server 2016\/2019\/2022 | Summa Lai","description":"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 'Remote Desktop' or from CMD, append powershell.exe in the beginning: powershell.exe Enable-NetFirewallRule -DisplayGroup 'Remote Desktop' To disable RDP Network Level Authentication (NLA), use the following","canonical_url":"https:\/\/SUMMALAI.COM\/?p=5150","robots":"max-image-preview:large","keywords":"disable rdp nla from powershell,enable rdp nla from powershell,microsoft family,windows servers","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/SUMMALAI.COM\/?p=5150#article","name":"How to Enable or Disable RDP NLA from PowerShell Windows Server 2016\/2019\/2022 | Summa Lai","headline":"How to Enable or Disable RDP NLA from PowerShell Windows Server 2016\/2019\/2022","author":{"@id":"https:\/\/SUMMALAI.COM\/?author=2#author"},"publisher":{"@id":"https:\/\/SUMMALAI.COM\/#person"},"image":{"@type":"ImageObject","@id":"https:\/\/SUMMALAI.COM\/?p=5150#articleImage","url":"https:\/\/SUMMALAI.COM\/wp-content\/uploads\/2020\/05\/Summa_Logo-150x150.png","width":96,"height":96,"caption":"Summa Lai"},"datePublished":"2024-08-22T08:34:53-07:00","dateModified":"2024-08-22T08:36:30-07:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/SUMMALAI.COM\/?p=5150#webpage"},"isPartOf":{"@id":"https:\/\/SUMMALAI.COM\/?p=5150#webpage"},"articleSection":"Microsoft Family, Windows Servers, Disable RDP NLA from PowerShell, Enable RDP NLA from PowerShell"},{"@type":"BreadcrumbList","@id":"https:\/\/SUMMALAI.COM\/?p=5150#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/SUMMALAI.COM#listItem","position":1,"name":"Home","item":"https:\/\/SUMMALAI.COM","nextItem":{"@type":"ListItem","@id":"https:\/\/SUMMALAI.COM\/?cat=10#listItem","name":"Microsoft Family"}},{"@type":"ListItem","@id":"https:\/\/SUMMALAI.COM\/?cat=10#listItem","position":2,"name":"Microsoft Family","item":"https:\/\/SUMMALAI.COM\/?cat=10","nextItem":{"@type":"ListItem","@id":"https:\/\/SUMMALAI.COM\/?cat=15#listItem","name":"Windows Servers"},"previousItem":{"@type":"ListItem","@id":"https:\/\/SUMMALAI.COM#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/SUMMALAI.COM\/?cat=15#listItem","position":3,"name":"Windows Servers","item":"https:\/\/SUMMALAI.COM\/?cat=15","nextItem":{"@type":"ListItem","@id":"https:\/\/SUMMALAI.COM\/?p=5150#listItem","name":"How to Enable or Disable RDP NLA from PowerShell Windows Server 2016\/2019\/2022"},"previousItem":{"@type":"ListItem","@id":"https:\/\/SUMMALAI.COM\/?cat=10#listItem","name":"Microsoft Family"}},{"@type":"ListItem","@id":"https:\/\/SUMMALAI.COM\/?p=5150#listItem","position":4,"name":"How to Enable or Disable RDP NLA from PowerShell Windows Server 2016\/2019\/2022","previousItem":{"@type":"ListItem","@id":"https:\/\/SUMMALAI.COM\/?cat=15#listItem","name":"Windows Servers"}}]},{"@type":"Person","@id":"https:\/\/SUMMALAI.COM\/#person","name":"sladmin","image":{"@type":"ImageObject","@id":"https:\/\/SUMMALAI.COM\/?p=5150#personImage","url":"https:\/\/SUMMALAI.COM\/wp-content\/uploads\/2020\/05\/Summa_Logo-150x150.png","width":96,"height":96,"caption":"sladmin"}},{"@type":"Person","@id":"https:\/\/SUMMALAI.COM\/?author=2#author","url":"https:\/\/SUMMALAI.COM\/?author=2","name":"Summa Lai","image":{"@type":"ImageObject","@id":"https:\/\/SUMMALAI.COM\/?p=5150#authorImage","url":"https:\/\/SUMMALAI.COM\/wp-content\/uploads\/2020\/05\/Summa_Logo-150x150.png","width":96,"height":96,"caption":"Summa Lai"}},{"@type":"WebPage","@id":"https:\/\/SUMMALAI.COM\/?p=5150#webpage","url":"https:\/\/SUMMALAI.COM\/?p=5150","name":"How to Enable or Disable RDP NLA from PowerShell Windows Server 2016\/2019\/2022 | Summa Lai","description":"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 'Remote Desktop' or from CMD, append powershell.exe in the beginning: powershell.exe Enable-NetFirewallRule -DisplayGroup 'Remote Desktop' To disable RDP Network Level Authentication (NLA), use the following","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/SUMMALAI.COM\/#website"},"breadcrumb":{"@id":"https:\/\/SUMMALAI.COM\/?p=5150#breadcrumblist"},"author":{"@id":"https:\/\/SUMMALAI.COM\/?author=2#author"},"creator":{"@id":"https:\/\/SUMMALAI.COM\/?author=2#author"},"datePublished":"2024-08-22T08:34:53-07:00","dateModified":"2024-08-22T08:36:30-07:00"},{"@type":"WebSite","@id":"https:\/\/SUMMALAI.COM\/#website","url":"https:\/\/SUMMALAI.COM\/","name":"Summa Lai","description":"Never Stop Learning, Building a Little Wiki...","inLanguage":"en-US","publisher":{"@id":"https:\/\/SUMMALAI.COM\/#person"}}]}},"aioseo_meta_data":{"post_id":"5150","title":null,"description":null,"keywords":null,"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2024-08-22 15:31:14","updated":"2024-08-22 15:36:30","seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/SUMMALAI.COM\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/SUMMALAI.COM\/?cat=10\" title=\"Microsoft Family\">Microsoft Family<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/SUMMALAI.COM\/?cat=15\" title=\"Windows Servers\">Windows Servers<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tHow to Enable or Disable RDP NLA from PowerShell Windows Server 2016\/2019\/2022\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/SUMMALAI.COM"},{"label":"Microsoft Family","link":"https:\/\/SUMMALAI.COM\/?cat=10"},{"label":"Windows Servers","link":"https:\/\/SUMMALAI.COM\/?cat=15"},{"label":"How to Enable or Disable RDP NLA from PowerShell Windows Server 2016\/2019\/2022","link":"https:\/\/SUMMALAI.COM\/?p=5150"}],"_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}]}}