If your main computer runs Windows, you do not need to switch to Linux to flash a Compute Module. rpiboot has a Windows installer that sets up shortcuts and batch files for the common jobs, and the command line works just as well when you want precise control. This guide covers the install, the shortcuts for each Compute Module family, the command prompt options, and the WSL forwarding step for users who prefer the Linux build inside Windows. By the end, you will know exactly which shortcut or command to reach for, and you will avoid the small setup traps that catch Windows users most often.
Install from the provided installer
Start by running the Windows installer provided with rpiboot. It places the tool, its boot files, and a set of shortcuts on your system, so you do not need to compile anything or hunt for dependencies. Let the installer finish with its default location unless you have a strong reason to move it, since the shortcuts point at that location. When the install completes, open the Start Menu and look for the rpiboot entries. Seeing them there is your confirmation that the install worked, and you can test them without any hardware attached, since launching one without a module will simply wait for a device.
If you cannot find the shortcuts, check the install folder directly for the batch files and executables. A second run of the installer can repair a partial install, and it is worth doing that before you dig into deeper troubleshooting. Windows security prompts may also appear during install, asking you to confirm a driver or a program from a known publisher. Read those prompts, confirm the install you just started, and let it complete. Cutting the install short leaves you with missing boot files, and rpiboot will fail later in confusing ways that look like hardware problems.
Shortcuts for each module family
The installer gives you different shortcuts because older and newer Compute Modules use different mass storage setups. For CM1, CM2, and CM3, use the shortcut named rpiboot-CM-CM2-CM3. For CM4 and CM5, use the shortcut named rpiboot-CM4-CM5 – Mass Storage Gadget. Picking the right shortcut matters, since it loads the boot files matched to that module family. Using the older shortcut for a CM4, or the newer one for a CM3, can leave you staring at a tool that never finds your device, even though your wiring is perfect.
There are also batch files for direct launches, such as rpi-mass-storage-gadget64.bat. That batch file starts the 64 bit mass storage gadget, which is the mode most CM4 and CM5 users want for flashing eMMC. Batch files are handy when you want to pin a shortcut to your taskbar or launch the tool from a script. You can also double click them from the install folder during a flashing session. Whichever launch method you choose, the result is the same: rpiboot waits for the module, loads its boot files, and exposes the eMMC as a USB drive on your Windows machine.
Use rpiboot from Command Prompt
If you prefer typing commands, open Command Prompt and run rpiboot from there. Plain rpiboot, with no arguments, defaults to mass-storage-gadget64. That default covers the common CM4 and CM5 flashing job, so many Windows users never need another flag. When you need a different set of boot files, pass a directory with rpiboot -d followed by the directory name, for example a recovery directory. For a reminder of every option, run rpiboot -h, which prints the help text with the full flag list.
Command Prompt gives you control that shortcuts hide. You can pass the loop flag to keep rpiboot running for repeated flashes, or the verbose flag to see detailed output while you debug a stubborn module. You can also combine flags, such as a directory plus verbose output, to watch exactly what the tool sends during a recovery run. Keep a note of the commands you use most, since the prompt history clears when you close the window. A small text file with your two or three favorite commands saves retyping and prevents typos during a flashing session.
What the mass storage gadget looks like on Windows
When rpiboot puts a module into mass storage gadget mode, Windows sees a new USB drive, just like plugging in a flash drive. Open File Explorer or Disk Management to confirm it appeared, and check its size against the eMMC capacity you expect. That size check is your safety net on Windows just as it is on Linux. Windows assigns the next free drive letter, so do not assume a letter from a previous session will match this one. Always confirm the letter and size in Disk Management before you write an image.
Once the drive is visible, you can write your OS image with Raspberry Pi Imager or another Windows imaging tool. Point the tool at the new drive, select your image, and write it. Imager and similar tools usually show a confirmation step with the target drive, and that step is worth reading slowly. After the write finishes and the tool reports success, eject the drive safely through Windows before you switch the module back to normal boot mode. Safe ejection flushes any cached writes, so your image is complete on eMMC when you power cycle.
Forward USB into WSL with usbipd
Some Windows users run the Linux build of rpiboot inside WSL, and that setup needs USB forwarding, because WSL cannot see USB devices on its own. The tool for that job is usbipd. On the Windows side, run usbipd list to see attached USB devices with their bus IDs. Find your Compute Module in that list, then run usbipd attach with that bus ID to forward it into WSL. After the attach, the Linux rpiboot inside WSL can discover the module normally.
Timing matters with usbipd. Put the module into USB boot mode and connect it first, then list and attach, then run rpiboot inside WSL. If rpiboot is already running and waiting when you attach, it should still pick the device up, but starting rpiboot after a confirmed attach gives you the cleanest result. If you unplug the module or reboot, you will likely need to attach again, so keep usbipd list in your routine for WSL sessions. When a WSL flash fails to find the module, check forwarding before you blame rpiboot, cables, or jumpers, since a missing attach is the most common WSL specific cause.
A last Windows tip concerns drive letters. Windows may assign a different letter to the same module on different days, depending on what else is plugged in, so never write down a letter as if it were permanent. Always open Disk Management in the current session, confirm the letter and size fresh, and only then start your imaging tool. That fresh check takes seconds, and it removes a whole category of wrong drive mistakes that come from trusting yesterday’s letter.
Conclusion
rpiboot on Windows is a complete path, not a compromise. Run the provided installer, pick the shortcut that matches your module family, and let the mass storage gadget expose the eMMC as a USB drive you can write with Imager or another tool. Use plain rpiboot from Command Prompt when you want the mass-storage-gadget64 default, add -d for a special directory, and check -h whenever you need a reminder. If you work in WSL, remember the usbipd list and attach steps that make the device visible to Linux. With those pieces in place, Windows users can flash and recover Compute Modules just as smoothly as Linux users, without leaving their main operating system.
Read next:
