Created
March 26, 2013 11:45
-
-
Save blacktaxi/5244799 to your computer and use it in GitHub Desktop.
Wi-Fi adapter restart script. Change "6205" to your adapter name.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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