Skip to content

Instantly share code, notes, and snippets.

@blacktaxi
Created March 26, 2013 11:45
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 blacktaxi/5244799 to your computer and use it in GitHub Desktop.
Save blacktaxi/5244799 to your computer and use it in GitHub Desktop.
Wi-Fi adapter restart script. Change "6205" to your adapter name.
echo "Restarting Wi-Fi adapter..."
$a = get-wmiobject -class Win32_NetworkAdapter | Where-Object {$_.Name -like "*6205*"}
echo "Disabling..."
$a.Disable()
sleep 1
echo "Enabling..."
$a.Enable()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment