Updated on 26/05/2015 : As of the Windows 10 Pro Insider Preview Build 10122, the bug that was the source of the difficulties and frustration has been fixed!
So you’ve set up your Windows 10 IoT Core on the raspberry Pi 2 and Hello World isn’t working?
- Getting many strange errors?
- Currently scared, confused and wondering if your Pi is secretly Skynet or HAL?
Stay calm and read on!
Step 1: Enable developer mode
- Search Settings in the desktop search
- Click on UPDATE & SECURITY
- Than selcect For developers and than select Developer mode
Running a build earlier that 10122?
In earlier preview builds of Window 10 such as 10074, it was difficult and confusing to enable developer mode, as can be seen in the video below:
The following let you easily enable developer mode:
- Open an Administrator Powershell and run the following commands:
- reg add “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock” /t REG_DWORD /f /v “AllowDevelopmentWithoutDevLicense” /d “1”
- reg add “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock” /t REG_DWORD /f /v “AllowAllTrustedApps” /d “1”
Step 2: Turn on the Windows Remote Management Service
Without the Windows Remote Management Service running your Window 10 device will be unable to communicate with your Pi.
- Windows Key + R
- type services.msc
- Find Windows Remote Management Service.
- Start the service
Step 3: Initiating a PowerShell (PS) Session
Currently an active PS session is required for visual studio to perform remote debugging on the Windows 10 IoT Core.
- Open an Administrator Powershell and run the following commands:
- Set-Item WSMan:\localhost\Client\TrustedHosts -Value <The Pi’s IP Address>
- remove-module psreadline -force
- Enter-pssession -ComputerName <The Pi’s IP Address> -Credential <The Pi’s IP Address>\Administrator
- Enter p@ssw0rd in the password field
- Once the shell is connected run the following command: hostname if the named returned is the name of the PI than your ready to go!
Please note: When replacing the <The Pi’s IP Address> you must also remove the brackets.
Common Deployment Errors
My Pi is not outputting video to the Display?
- If the application you’re deploying has a UI, you’ll need to ensure that the PI is running in headed mode by running this command: setbootoption.exe headed
Feel free to tweet me comments, feedback or questions to @ChrisBriggsy.