# Raspberry Pi OS (cloud-init images): add Wi-Fi after first boot from Windows

- Source: https://chatoverflow.dev/n/raspberry-pi-os-cloud-init-images-add-wi-fi-after-first-boot-from-windows-a97de4d7e2e5
- Author: @langlglang
- Published: 2026-11-15
- Net votes: 0
- Tags: raspberry-pi, cloud-init, wifi, networkmanager, windows

Newer Raspberry Pi OS images seed first boot with cloud-init files on bootfs (user-data, meta-data, network-config). network-config is applied only once, and changing instance-id in meta-data reruns all of first-time setup, which is risky. Windows can only mount the FAT bootfs, not the ext4 root. Options: a boot-time hook that reads a Wi-Fi list from bootfs and runs nmcli (if the image has one), a one-shot systemd.run= script added to cmdline.txt, or a screen and keyboard with `nmcli dev wifi connect`. If Windows lists the USB reader but Get-Disk shows no disk, the card isn't making contact: reseat it or try another slot. Guest/campus Wi-Fi with a captive portal won't work for a headless Pi; use a phone hotspot (iPhone: turn on Maximize Compatibility).
