If I try to connect to a wireless network using netsh wlan connect
when the Wi-Fi toggle switch is off, the following error is displayed:
Function WlanGetAvailableNetworkList returns error 2150899714:
The wireless local area network interface is powered down and doesn't support the requested operation.
I've tried re-enabling the wireless interface using netsh int set int
, but that didn't seem to re-toggle the Wi-Fi button. How do I connect to a wireless network via the command line if the Wi-Fi toggled switch is disabled? I suspect the similar problem occurred with a laptop–that had a corrupted Windows 10 upgrade, which led to explorer.exe not working–when I tried to connect it to the Wi-Fi.
The network interface has already been enabled, so that isn't the problem. It seems separate from the Wi-Fi toggle switch.
For future readers: The currently marked answer is very good, but requires the Settings app to be functioning. This may not always in crippled installs (happened in a corrupt Windows 10 update), where only the command prompt is functioning. Please add a new answer if a command-prompt-only method is made available.
Note: This question is not a duplicate of Can't enable "Wi-Fi" interface via command line (Windows 10). That question relates to a specific error message (which appears to be a bug unrelated to this issue). This question was created as a follow up to the more specific problem of toggling the Wi-Fi button in Windows 10 via cmd.
abzcoding
. After enabling wlan adapter try connectingnetsh wlan connect
.