Wlan: Netsh
Using this command, you can perform tasks that are often hidden or difficult to find in the standard Windows Settings menu, such as recovering saved Wi-Fi passwords, setting up hosted networks (hotspots), and configuring advanced security settings.
netsh wlan connect name="WiFi-Name"
Windows stores every Wi-Fi network a user connects to as an XML profile, containing the SSID, authentication type, encryption, and saved password. netsh wlan
