Launch a Command Prompt with Administrator privileges and enter the following command:
netsh wlan set hostednetwork mode=allow ssid=sanjay key=7359977215
Change the SSID value to choose a different name if you want, and use “key” to set a password. This will create a virtual network adapter.
Start the new virtual adapter by running the following command:
netsh wlan start hostednetwork
Go to the Control Panel and open up the Network and Sharing Center. You should see your new virtual adapter listed there (as shown in the screenshot above). Click the “Local Area Connection” link (or whatever shows up next to “Connections”).
Click the Properties button in the window that appears.
Head to the Sharing tab and then check the “Allow other network users to connect through this computer’s Internet connection” box.
Use the drop down menu to select the virtual network adaptor you’ve created.
Click OK followed by Close.