Skip to content

Instantly share code, notes, and snippets.

View thisisthetechie's full-sized avatar

Pete Mallam thisisthetechie

View GitHub Profile
@thisisthetechie
thisisthetechie / PrintWifiPasswords.ps1
Created May 10, 2018 07:23 — forked from peruihkxt/PrintWifiPasswords.ps1
Prints Wifi passwords from a remote machine by using Powershell remoting
#Make a list with all WiFi SSID's and passwords stored locally on Windows OS.
Param (
[string] $ComputerName
)
Invoke-Command -ComputerName $ComputerName -ScriptBlock {
$output = netsh.exe wlan show profiles
$profileRows = $output | Select-String -Pattern 'All User Profile'
$profileNames = New-Object System.Collections.ArrayList