This batch script allows you to display the stored Wi-Fi profiles and their passwords on a Windows system. It uses the command netsh wlan show profiles to list available Wi-Fi profiles and retrieve detailed information about a specific Wi-Fi profile (including the stored password).
- The script must be run with administrator privileges.
- The Wi-Fi profile whose information is to be displayed must be locally stored on the computer.
-
Display stored Wi-Fi profiles:
- The script lists all Wi-Fi profiles saved on the system.
-
Enter the network name (SSID):
- The user is prompted to enter the name of a network (SSID) from the list.
-
Retrieve information:
- The script displays the stored information of the specified network, including the password (if saved). The password appears under the field
Key Content.
- The script displays the stored information of the specified network, including the password (if saved). The password appears under the field
-
Error handling:
- If the network profile does not exist or no information is available, the script shows an appropriate error message.
-
Run the batch file:
- Right-click the file and select "Run as administrator."
-
Process:
- After starting, all stored Wi-Fi profiles are displayed.
- Enter the desired network name (SSID).
- The script shows the corresponding information, including the password (if available).
-
Example output:
- Available Wi-Fi profiles: Profile 1: MyWiFi Profile 2: GuestWiFi
- Please enter the network name (SSID): MyWiFi
- Information for the network "MyWiFi": Key Content = MyPassword123
- Password display: The field
Key Contentcontains the stored password, if available. - Permissions: The script requires administrator privileges to access stored network information.
- System language: On non-German Windows systems,
Schlüsselinhaltmay appear asKey Content.
This script is intended for private use only. It should not be used for unauthorized access to networks. The author assumes no liability for misuse of the script.