Skip to content

Instantly share code, notes, and snippets.

@watahani
Created March 24, 2020 05:47
Show Gist options
  • Save watahani/df89df0abf812bb2dd39b9bf949167ba to your computer and use it in GitHub Desktop.
Save watahani/df89df0abf812bb2dd39b9bf949167ba to your computer and use it in GitHub Desktop.
netsh wlan show profiles | %{ $_.Split(":")[1]} | ?{$_ -ne $null -and ( $_ -notmatch "^\s*$" ) } | %{$_.trim()} | %{ netsh wlan show profile name="$_" key=clear} | ?{ $_ -like "*主*" -or ( $_ -like "*D 名*" ) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment