How to create a WiFi in Window PC using Command Pormpt

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

Step 2: Type “cmd” in the box then hit “Enter“. The Command Prompt will pop up, with Administrative Privileges.

Step 3: Type netsh wlan show drivers in command prompt and press enter. Search for the field “Hosted network supported :Yes” which means the PC supports hosted networks. Verify this.

Step 4: 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:  Type netsh wlan start hostednetwork in command prompt to start the hotspot.


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

Type netsh wlan show hostednetwork to check the hotspot status.

To share your internet connection on this hotspot:

  1. Network and sharing center> Change adapter setting.
  2. Right click on the Connection>select properties.
  3. In properties go to Sharing tab and check the box “Allow other network users to connect through this computer’s internet connection”. 
  4. 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 internet connection is shared.


Leave a Reply

Your email address will not be published. Required fields are marked *