{"id":1838,"date":"2016-04-20T09:29:30","date_gmt":"2016-04-20T08:29:30","guid":{"rendered":"http:\/\/blog.repsaj.nl\/?p=1838"},"modified":"2016-04-20T09:29:30","modified_gmt":"2016-04-20T08:29:30","slug":"iot-enabling-windows-iot-remote-server-on-raspberry-pi","status":"publish","type":"post","link":"http:\/\/blog.repsaj.nl\/index.php\/2016\/04\/iot-enabling-windows-iot-remote-server-on-raspberry-pi\/","title":{"rendered":"[IoT] Enabling Windows IoT Remote Server on Raspberry Pi"},"content":{"rendered":"<p>If you have Windows IoT running on your Raspberry Pi and like me you&#8217;re a Windows Insider running a recent insider build (in my case\u00a010.0.14295.1000), you might have noticed the &#8220;Remote&#8221; option in the UI. This allows you to enable a simple version of &#8220;Remote Desktop&#8221;-like functionality.<\/p>\n<p>In my case, clicking the checkbox in the UI would give me the following error:<br \/>\n&#8220;Failed to enable Windows IOT Remote Server&#8221;<\/p>\n<p>Great, that&#8217;s real helpful. So I went out to find more information and posted <a href=\"https:\/\/social.msdn.microsoft.com\/Forums\/en-US\/1326e40a-35b1-4986-a1dd-8f08b30376aa\/failed-to-enable-windows-iot-remote-server?forum=WindowsIoT&amp;prof=required\" target=\"_blank\">this thread<\/a> on the MSDN forums. \u00a0After some back and forth messages, a Microsoft employee by the nickname of IoTGirl came with a solution!\u00a0<!--more--><\/p>\n<p>To check the status of the Remote server, open up a new Powershell session to your device. Then execute the following command:<\/p>\n<pre class=\"lang:default decode:true \">schtasks \/query \/tn \\Microsoft\\Windows\\NanoRDP\\Start \/fo csv \/nh<\/pre>\n<p>In my case, this would give me an error which is basically a sign that the task doesn&#8217;t exist. So we&#8217;ll create it:<\/p>\n<pre class=\"lang:default decode:true \">schtasks \/Create \/SC ONSTART \/TN \\Microsoft\\Windows\\NanoRDP\\Start \/TR %SystemRoot%\\\\System32\\\\NanoRDPServer.exe \/RU DefaultAccount \/F<\/pre>\n<p>This creates a scheduled task set to run on boot. The server is not yet running at this point, for this we&#8217;ll execute the task manually:<\/p>\n<pre class=\"lang:default decode:true \">schtasks \/Run \/TN \\Microsoft\\Windows\\NanoRDP\\Start<\/pre>\n<p>And if all is well, the server should now start and you&#8217;ll be able to connect (download the Windows IoT Remote Client app from the store to connect, normal RDP doesn&#8217;t work). Awesome stuff!<\/p>\n<p>&nbsp;<\/p>\n<p>Should you want to delete the task again:<\/p>\n<pre class=\"lang:default decode:true\">schtasks \/Delete \/TN \\Microsoft\\Windows\\NanoRDP\\Start \/F<\/pre>\n<p>&nbsp;<\/p>\n<p>Which is cool, but note that now that you&#8217;ve got the job fixed, the UI also is coming alive. So you could now just use the checkbox to enable\/disable the task instead:<\/p>\n<p><a href=\"http:\/\/blog.repsaj.nl\/index.php\/2016\/04\/iot-enabling-windows-iot-remote-server-on-raspberry-pi\/windows_iot_remote_server\/\" rel=\"attachment wp-att-1839\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-1839\" src=\"http:\/\/blog.repsaj.nl\/wp-content\/uploads\/2016\/04\/windows_iot_remote_server.png\" alt=\"windows_iot_remote_server\" width=\"562\" height=\"212\" srcset=\"http:\/\/blog.repsaj.nl\/wp-content\/uploads\/2016\/04\/windows_iot_remote_server.png 562w, http:\/\/blog.repsaj.nl\/wp-content\/uploads\/2016\/04\/windows_iot_remote_server-300x113.png 300w\" sizes=\"(max-width: 562px) 100vw, 562px\" \/><\/a><\/p>\n<p>Happy remoting!<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you have Windows IoT running on your Raspberry Pi and like me you&#8217;re a Windows Insider running a recent insider build (in my case\u00a010.0.14295.1000), you might have noticed the &#8220;Remote&#8221; option in the UI. This allows you to enable a simple version of &#8220;Remote Desktop&#8221;-like functionality. In my case, clicking the checkbox in the<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[34],"tags":[150,39,151],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p3KFR1-tE","_links":{"self":[{"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/posts\/1838"}],"collection":[{"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/comments?post=1838"}],"version-history":[{"count":0,"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/posts\/1838\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/media?parent=1838"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/categories?post=1838"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/tags?post=1838"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}