Installing Windows 10 IoT Core on a Raspberry Pi 2

A few months ago I wrote a three-part series on how to get started with Windows 10 IoT on the Raspberry Pi. 

The process to get the Windows 10 IoT Core image onto the SC card has changed slightly since then so here are the details on how to achieve a build as of the end of July 2015.

Download the Install

Download the IOT Core RPi.ISO from the Microsoft Download Center here

Once downloaded extract the ISO. You will be left with a Windows_10_IoT_Core_RPi2.msi file. Double click the file to install.

Accept the licence agreement and click Install.

Once complete you can uncheck the Core Watcher checkbox and click Finish.

The fflash.ffu file required to be loaded onto the SD Card is located in the folder C:\Program Files (x86)\Microsoft IoT\FFU\RaspberryPi2

Run CMD and type in:

diskpart

list disk

You can then find the drive number for your SD Card - in my example below it is Disk 1

There are two ways you can apply the image to the SD Card. You can use DISM or WindowsIoTImageHelper.

To use DISM use the following command from an administrator CMD prompt:

dism.exe /Apply-Image /ImageFile:flash.ffu /ApplyDrive:\\.\PhysicalDriveN /SkipPlatformCheck  (PhysicalDriveN being the number of the drive - in my example 1).

To use WindowsIoTImageHelper search for the application on your Windows 10 device.

Select the SD Card drive and then browse to the flash.ffu file in the C:\Program Files (x86)\Microsoft IoT\FFU\RaspberryPi2 folder. Click Flash to image

Click Continue to erase any content on the disk

This process then opens up a command prompt and runs the DISM command for you.

Boot the Raspberry Pi

Insert the SD Card into the Raspberry Pi and power on. Give the OS time to set up. The screen will go black for a while (a couple of minutes). 

Once loaded you will presented with a screen to configure the language. This is new with the latest release of Windows 10 IoT Core, so it's worth having a keyboard and mouse plugged into the Raspberry Pi's USB ports. Select your language and click Next.

You'll then be presented with the more recognisable Windows 10 IoT Core screen. 

Note that this version has menu options to change some basic tutorials and change settings. If you select settings you can configure WiFi is using a compatible USB WiFi adapter.

Configure the Raspberry Pi

Now that the Pi 2 is up and running it's time to do some basic config using PowerShell from your Windows 10 PC.

Launch PowerShell as an administrator. You may need to start the Windows Remote Manager service on your device. To do this enter the following command

 net start WinRM

Now a trust relationship between the PC and the Pi needs to be established. To do this enter the following command.

 Set-Item WSMan:\localhost\Client\TrustedHosts -Value <machine-name or IP Address of the Raspberry Pi>

For my set up I need to enter the IP address 192.168.1.135.

Enter 'Y' when prompted.

Next you need to start a remote session on the Pi. To do this use the PowerShell command Enter-PSSession.

Enter-PsSession -ComputerName <machine-name or IP Address of the Pi> -Credential <machine-name or IP Address or localhost of the Pi>\Administrator

So for my connection I would use

Enter-PsSession -ComputerName 192.168.1.135 -Credential 192.168.1.135\Administrator

Once those details are entered you will presented with an authentication window to enter the password for Administrator. The default password to use is - p@ssw0rd. Note that this should be changed as soon as possible for security reasons.

The connection can take up to half a minute so be patient here.

You should now be running a remote PSSession to Windows 10 IoT on the Raspberry PI 2.

I can type in a net user Administrator command to get some information back about the Administrator account.

I can also make the password change for the Administrator using the net user Administrator <password> command.

Things to Note

Microsoft state that a SD Card sized 8GB + should be used with Windows 10 IoT Core. 

I attempted to flash a 4GB card using WindowsIoTImageHelper and at each attempt to run DISM it prompted me to format the card. So I couldn't use this SD Card.

I also attempted to install with a 8GB SD Card and when the Windows 10 IoT Core booted up on the Pi, it got stuck on the screen 'Welcome to Windows 10 IoT Core - Please wait while we get things ready'.

A 16GB card installed with no problems.

Look out for some new Windows 10 IoT tutorials coming soon.