I wanted to upgrade my MacBook Pro. It should get a newer version of macOS and also a SSD instead of a HDD. So I pointed the macOS Installer to the SSD that was connected using a USB to SATA connector.
After replacing the Hard Disk, while the battery was disconnected, I tried to boot into the newly installed macOS. That didn't succeeded, so it booted into Internet Recovery.
Since the Hard Disk where the password was stored, was completely removed from the computer, where did the Mac get SSID and password for accessing the Wi-Fi access point?
I wiped the SSD to reinstall the OS. Internet Recovery was still able to connect to the Wi-Fi access point. From this it follows that the Wi-Fi configuration (of the last used Wi-Fi access point) must be stored somewhere else. Where and how can I read from there?