Skip to content

Instantly share code, notes, and snippets.

@postworthy
Created November 6, 2019 18:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save postworthy/b9637cf4ff2a6674dc69e6bdc2abb87a to your computer and use it in GitHub Desktop.
Save postworthy/b9637cf4ff2a6674dc69e6bdc2abb87a to your computer and use it in GitHub Desktop.
netsh wlan show all | Select-String '\sSSID name.+:' | ForEach-Object { $wlan=$_.ToString().Split(':')[1].Trim(' ').Trim('"');netsh wlan show profiles name="$wlan" key=clear }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment