How to turn on WIFI via the Command Prompt “CMD”

1

Let’s say your laptop’s WiFi button is not working… and you need to turn on your Wifi connection, what do you do? Is there any command in Windows to turn on WiFi ?

Yes, Its possible to turn it on by using the command prompt to do this you have to follow the following steps

Note that these commands are available only in Windows 7 or Windows 8 Ready PC.

STEP 1
Run. Press the “Windows key” and “R” buttons at the same time. The Run window will pop up.

Also Read: How to turn on or off wireless connectivity in Windows 7
STEP 2
Command Prompt. Type “cmd” in the box then hit “Enter” or OK. The Command Prompt will pop up, with Administrative Privileges.

Create a WiFi Hotspot Using the Command Prompt -- Step 3

STEP 3
Device Check. Type netsh wlan show drivers in command prompt and press enter.

It will show the output like the image.

In the output Hosted network supported :Yes means that your computer supports hosted networks. Verify this.

Create a WiFi Hotspot Using the Command Prompt - Step 4

STEP 4
Create. Type netsh wlan set hostednetwork mode=allow ssid=Hotspotname key=password in Command prompt. This will create a Hotspot but it is currently offline.

STEP 5
Start. Type netsh wlan start hostednetwork in command prompt to start the hotspot you just created.

Create a WiFi Hotspot Using the Command Prompt - Step 6

STEP 6
Stop. Type netsh wlan stop hostednetwork in command prompt to stop the hotspot.

Create a WiFi Hotspot Using the Command Prompt - Step 7

STEP 7
Details. Type netsh wlan show hostednetwork to check the hotspot status.

Just like that and you’re done.



Warnings
Using Administrator privileges for CMD is must to run this commands. It will show error without it.

Did this article help you? Just leave your comments bellow.

Share.

1 Comment

  1. Followed all the steps and I got
    “Hosted network status
    Status. : Not started”

    Wifi card is still not working. I have NEVER had this much trouble from my laptop since getting it in 2013. I have formatted and reinstalled windows 7 on It so many times through the years and I have never run into this problem of not being able to get the wifi turned on. I know it’s not a driver issue or button issue because I have been using the same driver for years since I first got the laptop.

    I have even replaced the original Ralink card with an Atheros one that I am sure is compatible. I’ve tried another command line method with an error message and I AM running as admin. I just don’t know what the hell to do…
    I have also tried the whole “take the battery out and hold the power button” and “press the wifi key AS the system starts” methods.

    Compaq CQ58 bfw9m or whatever the fuck it is…

    (have worked on computers since 2009. And always seem to get stuck with the retarded PCs)

    PS: I tried to enter “start hostednetwork” just to see what would happen, and I got
    “A device attached to the system is not functioning”

Leave A Reply