The simplest way is to get Connectify. But for those who prefer to built your own, it is really simple.
1) Open command prompt with administrator privileges. The usual right click, followed by “Run as Administrator” should do.
2) Configure your network by typing in:
netsh wlan set hostednetwork mode=allow ssid=thisisagenericssid key=opensesame
Keep in mind that the
ssid is the name you will connect to and
key is your network’s passphrase (or some call security key, password etc). The rest should be self explanatory.
3) Go to your network adapter’s settings.
Right click on the adapter which has the internet connection and click on
properties. Click on the
sharing tab then enable
Internet Connection Sharing. Under the
Home networking connection, select the newly added
*Wireless Network Connection.
4) Start your network/Wi-Fi hotspot with the following:
netsh wlan start hostednetwork
5) To stop the network/Wi-Fi hotspot type:
netsh wlan stop hostednetwork
For any reason if you decide to remove the Wi-Fi hotspot, do the following:
1) Stop the network, see Step 5.
2) In command prompt with admin privileges, enter the following:
netsh wlan set hostednetwork mode=disallow
This command basically remove the Microsoft Virtual WiFi Miniport Adapter.
*If connection does not appear in the list, Uninstall it through Device Manager under Network adapters. Restart the PC and the connection should be reestablish by Windows.