Create a WiFi Hotspot Using the Command Prompt

This article will show you how to create a WiFi hotspot using command prompt. Note that this process describes some of the commands that are available only in Windows 7 or Windows 8 Ready PC.

10 Second Summary

1. Press the "Windows key" and "R" to open "Run". More ↓
2. Type "cmd" then hit "Enter" or "OK".
3. Type "netsh wlan show drivers" and press "Enter".
4. Type "netsh wlan set hostednetwork mode=allow ssid=Hotspotname key=password" to create the hotspot.
5. Type "netsh wlan start hostednetwork" to start the hotspot.

Steps

  1. Run. Press the "Windows key" and "R" buttons at the same time. The Run window will pop up.
  2. Command Prompt. Type "cmd" in the box then hit "Enter" or OK. The Command Prompt will pop up, with Administrative Privileges.
  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.
  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.
  5. Start. Type netsh wlan start hostednetwork in command prompt to start the hotspot you just created.
  6. Stop. Type netsh wlan stop hostednetwork in command prompt to stop the hotspot.
  7. Details. Type netsh wlan show hostednetwork to check the hotspot status.
  8. Internet. To share your internet connection on this hotspot go to the Network and sharing center and click on Change adapter setting. Here right click on the Connection that you use to connect to internet and select properties.
    In properties go to Sharing tab and check the box "Allow other network users to connect through this computer's internet connection and select the network connection name that is used by your hotspot.(For this check the Network Connection Window and look for Connection which says Microsoft Hosted Network Virtual Adapter). And save it.
    Now your inter net connection is shared.



Tips

  • Now as you guys are thinking this is so much typing. But you can do it another way. Open Notepad and type all the commands and save the file as ".bat" extension. Example. hots.bat
  • You can write this commands in a .bat file and keep it on desktop for Quick access.
  • And Run it as administrator and your hotspot is running.

Warnings

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

Sources and Citations