When we search on internet about how to turn on wifi using command prompt all solutions are about how to disable WLAN adapter which can be simply achieved by netsh command but what I was looking for is how to turn on or off my wifi without disabling network adapter. After some digging what I found is this In both cases wifi adaptor is enabled When we run Netsh WLAN show interface while wifi is on we get this
There is 1 interface on the system:
Name : Wi-Fi
Description : Qualcomm Atheros AR956x Wireless Network Adapter
GUID : e1e71fab-3a91-4b36-a65b-2c68239b729f
Physical address : 24:fd:52:af:76:92
State : disconnected
Radio status : Hardware On
Software On
Hosted network status : Not started```.
But when wifi is off same command gives this.
```netsh wlan>show interface
There is 1 interface on the system:
Name : Wi-Fi
Description : Qualcomm Atheros AR956x Wireless Network Adapter
GUID : e1e71fab-3a91-4b36-a65b-2c68239b729f
Physical address : 24:fd:52:af:76:92
State : disconnected
Radio status : Hardware On
Software Off
Hosted network status :Not started```
So what I want is to change this radio status of software via command prompt or powershall
Please help me guys.
These are the commands which worked in command prompt
Check radio status(no admin privileges required)
powershell Get-NetAdapterAdvancedProperty -Name "Wi-Fi" -AllProperties -RegistryKeyword "radioEnable"
To turn radio on (run as administrator)
powershell Set-NetAdapterAdvancedProperty -Name "Wi-Fi" -AllProperties -RegistryKeyword "radioEnable" -RegistryValue "1"
To turn radio off (run as administrator)
powershell Set-NetAdapterAdvancedProperty -Name "Wi-Fi" -AllProperties -RegistryKeyword "radioEnable" -RegistryValue "0"
to use these commands in powershell just remove powershell from beginning