This guide shows you how to retrieve recent WiFi connection history from the Windows Registry using the Python _winreg module/library. The _winreg module provides easy read or write access to the Windows Registry. That being said, you should backup your registry before making changes. If you change the wrong settings, it can crash your system.
Knowing recent WiFi connections, that a PC/Laptop has connected to, can help build a map of where it has been.
The script should work for Windows Vista and above. I am currently using a Windows 10 machine with Python 2.7 installed. If you do not have Python installed on Windows, there is a great guide available at https://www.londonappdeveloper.com/.
A basic understanding of Python (or any other programming language) is required, but I will try to comment the code as best as possible.