Skip to content
This repository has been archived by the owner on Jul 6, 2023. It is now read-only.

Latest commit

 

History

History
53 lines (34 loc) · 2.23 KB

Get-WLANProfile.README.md

File metadata and controls

53 lines (34 loc) · 2.23 KB

Get-WLANProfile

Get WLAN profiles, include password as SecureString or as plain text.

Description

Get WLAN profiles on your local system, include Name, SSID, Authentication and Password as secure string or plain text. You don't need an additional application, which is full of advertising. And for learning purposes it shows, how easy it is to find out the WLAN password, if you have physical/remote access to the computer.

All this just by parsing the output of netsh.exe, which can be called without admin permissions.

Screenshot

In Windows 7 there was a graphical interface in the network settings, where you could get the wlan password in plain text. In Windows 8, 8.1 and 10 this function is hidden or difficult to find.

Syntax

Get-WLANProfile [[-ShowPassword]] [[-Search] <String>] [[-ExactMatch]] [<CommonParameters>]

Example 1

PS> Get-WLANProfile											

Name              SSID               Authentification    Password
----              ----               ---------------     ------
MyHomeNetwork01   MyHomeNetwork      WPA2-Personal       System.Security.SecureString
MyHomeNetwork02   MyHomenetwork5G    WPA2-Personal       System.Security.SecureString

Example 2

PS> Get-WLANProfile  -ShowPassword -Search "MyHomeNetwork*"			

Name              SSID               Authentification    Password
----              ----               ---------------     ------
MyHomeNetwork01   MyHomeNetwork      WPA2-Personal       MyPassword123456789
MyHomeNetwork02   MyHomenetwork5G    WPA2-Personal       MyPassword987654321

Further information

Inspired by