[IoT] Enabling Windows IoT Remote Server on Raspberry Pi
If you have Windows IoT running on your Raspberry Pi and like me you’re a Windows Insider running a recent insider build (in my case 10.0.14295.1000), you might have noticed the “Remote” option in the UI. This allows you to enable a simple version of “Remote Desktop”-like functionality.
In my case, clicking the checkbox in the UI would give me the following error:
“Failed to enable Windows IOT Remote Server”
Great, that’s real helpful. So I went out to find more information and posted this thread on the MSDN forums. After some back and forth messages, a Microsoft employee by the nickname of IoTGirl came with a solution!
To check the status of the Remote server, open up a new Powershell session to your device. Then execute the following command:
schtasks /query /tn \Microsoft\Windows\NanoRDP\Start /fo csv /nh
In my case, this would give me an error which is basically a sign that the task doesn’t exist. So we’ll create it:
schtasks /Create /SC ONSTART /TN \Microsoft\Windows\NanoRDP\Start /TR %SystemRoot%\\System32\\NanoRDPServer.exe /RU DefaultAccount /F
This creates a scheduled task set to run on boot. The server is not yet running at this point, for this we’ll execute the task manually:
schtasks /Run /TN \Microsoft\Windows\NanoRDP\Start
And if all is well, the server should now start and you’ll be able to connect (download the Windows IoT Remote Client app from the store to connect, normal RDP doesn’t work). Awesome stuff!
Should you want to delete the task again:
schtasks /Delete /TN \Microsoft\Windows\NanoRDP\Start /F
Which is cool, but note that now that you’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:
Happy remoting!
June 8, 2016 at 5:46 am |
I get hos connection timed out
June 8, 2016 at 6:50 am |
When exactly are you getting that error message?
February 27, 2017 at 7:21 am |
I’m still getting that error when runing above code.
August 1, 2017 at 8:28 am |
Sharing, just in case you had the same problem I had. I also kept getting the error, until I spotted the scroll bar for the “/Create” command. The way the text cut off in my browser made it look as if I was seeing the full command. Once I typed the full command in, everything worked perfectly.
August 1, 2017 at 11:11 am
Good catch! Thanks for sharing that Emile!
October 12, 2016 at 7:15 pm |
Thanks jebus… Well actually thank IoTGirl and Thank you for re-posting… That would have taken a while
August 1, 2017 at 8:29 am |
Thanks IoTGirl and Jasper for sharing / re-posting. Works perfectly on my RPi 3.