Skip to content

Instantly share code, notes, and snippets.

@82p
Last active March 12, 2018 06:22
Show Gist options
  • Save 82p/19798f09b3b56a5e4ef13a568febca80 to your computer and use it in GitHub Desktop.
Save 82p/19798f09b3b56a5e4ef13a568febca80 to your computer and use it in GitHub Desktop.
show wi-fi password in japanese powershell
$OutputEncoding='utf-8'
netsh wlan show profiles | %{ $_.Split(":")[1]} | `
Where-Object{$_ -ne $null -and ( $_ -notmatch "^\s*$" ) } | `
ForEach-Object{$_.trim()} | `
ForEach-Object{ netsh wlan show profile name="$_" key=clear} | `
Where-Object{ $_ -like "*主要なコンテンツ*" -or ( $_ -like "*SSID 名*" ) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment