The Categorizer

the categorizer logo

Show WiFi Password in Windows (PowerShell and Batch Script)


PowerShell Script (.ps1)

# Scripts Library - TheCategorizer.com

# Show Saved WiFi Connections
"Available User Profiles"
netsh wlan show profiles

# Collect User Input
"Input an Available User Profile"
$user_input = Read-Host

# Show Network Password Based on the Input
netsh wlan show profile "$user_input" key=clear | findstr "Key Content"

NOTE: Copy and paste the script into a text document, change its file extension from “.txt” to “.ps1“, save the file and run it as an administrator.


Batch Script (.bat)

@REM Scripts Library - TheCategorizer.com

@echo off

@REM Show Saved WiFi Connections
echo Available User Profiles
netsh wlan show profiles

@REM Collect the Desired Network Proflie from the User
echo Input an Available User Profile
set /p user_profile= ""

@REM Show Network Password Based on the Input
netsh wlan show profile "%user_profile%" key=clear | findstr "Key Content"
pause

NOTE: Copy and paste the script into a text document, change its file extension from “.txt” to “.bat“, save the file, and run it as an administrator.


More Scripts


More Articles