How To Reset A Wireless Network Adapter? #PowerShell
Category : Windows PowerShell
Author: Frank Peter (93 Articles)
I switch between wireless networks frequently. Usually I am facing issues with getting connected which get resolved by clicking around in Vista’s Network and Sharing Center. As this takes always a couple of minutes I want a PowerShell script that I can use to reset my wireless lan adapter directly.
This can be accomplished using WMI:
$wlan = Get-WmiObject -Class Win32_NetworkAdapter -Filter "Name LIKE '%wireless%'"
# Maybe waste of time. Never mind!
Start-Sleep -Seconds 10