{"id":93,"date":"2015-01-06T08:50:39","date_gmt":"2015-01-06T08:50:39","guid":{"rendered":"http:\/\/robinplomp.com\/?p=93"},"modified":"2015-01-06T08:38:36","modified_gmt":"2015-01-06T08:38:36","slug":"enabling-remote-desktop-remotely-with-powershell","status":"publish","type":"post","link":"https:\/\/robinplomp.com\/?p=93","title":{"rendered":"Enabling Remote Desktop remotely with PowerShell"},"content":{"rendered":"<p><a href=\"http:\/\/robinplomp.com\/wp-content\/uploads\/2015\/01\/download.png\"><img loading=\"lazy\" decoding=\"async\" width=\"142\" height=\"142\" title=\"download\" align=\"left\" style=\"float: left; display: inline; background-image: none;\" alt=\"download\" src=\"http:\/\/robinplomp.com\/wp-content\/uploads\/2015\/01\/download_thumb.png\" border=\"0\"><\/a>Last week I was busy building a new lab environment on my Hyper-V environment. My automated installation joined the machine to my LAB environment domain and disable the Windows Firewall. The only thing I forgot to include was enabling Remote Desktop. It was not posible to start a remote registry session, and I did not have my machine running that has the Hyper-V Manager installed. <br \/>\nThe solution is to open a remote PowerShell sessie via the ServerManager. <\/p>\n<p><!--more--><\/p>\n<p><a href=\"http:\/\/robinplomp.com\/wp-content\/uploads\/2015\/01\/image5.png\"><img loading=\"lazy\" decoding=\"async\" width=\"455\" height=\"248\" title=\"image\" style=\"margin-right: auto; margin-left: auto; float: none; display: block; background-image: none;\" alt=\"image\" src=\"http:\/\/robinplomp.com\/wp-content\/uploads\/2015\/01\/image_thumb6.png\" border=\"0\"><\/a><\/p>\n<p>Within this remote PowerShell session with my new server, I executed the following commands:<\/p>\n<p><a href=\"http:\/\/robinplomp.com\/wp-content\/uploads\/2015\/01\/image6.png\"><img loading=\"lazy\" decoding=\"async\" width=\"560\" height=\"108\" title=\"image\" style=\"margin-right: auto; margin-left: auto; float: none; display: block; background-image: none;\" alt=\"image\" src=\"http:\/\/robinplomp.com\/wp-content\/uploads\/2015\/01\/image_thumb7.png\" border=\"0\"><\/a><\/p>\n<p><\/p>\n<p><pre class=\"lang:ps decode:true \" >Set-ItemProperty -Path 'HKLM:\\System\\CurrentControlSet\\Control\\Terminal Server'-name \"fDenyTSConnections\" -Value 0<\/pre>\n<p><\/p>\n<pre class=\"lang:ps decode:true \" >Set-ItemProperty -Path 'HKLM:\\System\\CurrentControlSet\\Control\\Terminal Server\\WinStations\\RDP-Tcp' -name \"UserAuthentication\" -Value 1<\/pre>\n<\/p>\n<p>Now I can open a Remote Desktop connection to my new server.<\/p>\n<p><a href=\"http:\/\/robinplomp.com\/wp-content\/uploads\/2015\/01\/image7.png\"><img loading=\"lazy\" decoding=\"async\" width=\"340\" height=\"306\" title=\"image\" style=\"margin-right: auto; margin-left: auto; float: none; display: block; background-image: none;\" alt=\"image\" src=\"http:\/\/robinplomp.com\/wp-content\/uploads\/2015\/01\/image_thumb8.png\" border=\"0\"><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Last week I was busy building a new lab environment on my Hyper-V environment. My automated installation joined the machine to my LAB environment domain and disable the Windows Firewall. The only thing I forgot to include was enabling Remote Desktop. It was not posible to start a remote registry session, and I did not &hellip; <a href=\"https:\/\/robinplomp.com\/?p=93\" class=\"more-link\">Lees verder <span class=\"screen-reader-text\">Enabling Remote Desktop remotely with PowerShell<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[11,17],"class_list":["post-93","post","type-post","status-publish","format-standard","hentry","category-powershell","tag-powershell","tag-remote-desktop"],"_links":{"self":[{"href":"https:\/\/robinplomp.com\/index.php?rest_route=\/wp\/v2\/posts\/93","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/robinplomp.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/robinplomp.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/robinplomp.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/robinplomp.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=93"}],"version-history":[{"count":2,"href":"https:\/\/robinplomp.com\/index.php?rest_route=\/wp\/v2\/posts\/93\/revisions"}],"predecessor-version":[{"id":95,"href":"https:\/\/robinplomp.com\/index.php?rest_route=\/wp\/v2\/posts\/93\/revisions\/95"}],"wp:attachment":[{"href":"https:\/\/robinplomp.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=93"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/robinplomp.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=93"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/robinplomp.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=93"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}