Cian
Cian

Reputation: 37

WiFi Password with Command Prompt windows 8.1

I used this command to get connected WiFi password:

netsh wlan show profile name="my profile name" key=clear

but it doesn't show security key, it says:

key content = absent

Is there still any way to get it? why is it absent?

Upvotes: 1

Views: 1695

Answers (2)

user7818749
user7818749

Reputation:

You can use this batch file to get all of the ssid's and passwords from your system. Copy and paste the code below into notepad and save it as get_ssid_pwd.cmd and then open cmd as administrator, cd to the directory where you save the file and run it as get_ssid_pwd.cmd:

@echo off
setlocal enabledelayedexpansion
for /f "tokens=2delims=:" %%a in ('netsh wlan show profile ^|find /i "All User Profile"') do (
    set "ssid=%%~a"
    call :getpwd %%ssid:~1%%
)
:getpwd
for /f "tokens=2delims=:" %%i in ('netsh wlan show profile name^="%*" key^=clear ^| findstr /C:"Key Content"') do echo ssid: %* pass: %%i

Upvotes: 0

user12431753
user12431753

Reputation:

From Help

netsh wlan show profile /?

If key is set to "clear" and the caller is local administrator, the key will be shown in plain text.

Upvotes: 1

Related Questions