How to find forgotten Wi-Fi passwords and SSIDs in Windows and Android

hands-on You're at a place you've been before and your Windows laptop immediately remembers the SSID and password for the Wi-Fi network, logging you on automatically. But your phone, tablet, and your coworker's laptop have never been here before, so they can't connect. If only you remembered the password or had it written down somewhere....