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.