Install Windows IoT on the Raspberry Pi using Windows 8.1 / 7 (The /applydrive option is not recognized in this context.)

If you are setting up Windows IoT on the Raspberry Pi, you will only be able to install using the Microsoft instructions using a Windows 10 OS.

If you are using Windows 7, 8 or 8.1 then you will get the “The /applydrive option is not recognized in this context.” error. This is because the dism.exe version on Windows 7, 8 and 8.1 is different to the the dism.exe on Windows 10.

There is an easy way to install Windows IoT on Windows 7, 8 or 8.1. Just follow the following instructions.

  1. Download the Raspberry Pi2 Windows IoT latest build from Microsoft Connect
    Windows IoT Build for Raspberry Pi 2 from Microsoft Connect
  2. Extract the zip file to c:/iot
  3. Download imgmount and place the exe file to c:/iot
  4. Open a administrator command prompt and go to c:/iot and type imgmount Flash.ffu. This will convert the ffu to a VHD image and mount it in Disk Management
  5. Go to disk management and detach the VHD
    Disk Management Detach VHD
  6. Next is to restore the VHD file to the SD Card using winimage
  7. Download winimage and install. Open the winimage administrator
  8. Click Disk from the menu and choose Restore Virtual Hard Disk image on physical drive
  9. Select your SD Card from the list and navigate to the VHD file which should be the following path “C:\Users\{user}\AppData\Local\Temp” .

Restoring the image onto the SD Card can take a while. After it is complete insert the SD Card into the Raspberry Pi 2 and all should be working.

Leave a Reply