Created
October 11, 2018 02:43
-
-
Save m-p-3/01655b0475f11b8c20d0895c06d9dc09 to your computer and use it in GitHub Desktop.
Reset WiFi adapter is disconnected (can fix some driver issues where the adapter can't reconnect to a network)
This file contains 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
$DisconnectedWiFi = Get-NetAdapter | where {$_.Name -eq "WiFi"} |where {$_.Status -eq "Disconnected"} | select -ExpandProperty Name | |
if ($DisconnectedWiFi -notlike "Disconnected") | |
{Restart-NetAdapter -Name $DisconnectedWiFi} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment