Click Start, type CMD, right-click the cmd.exe link and select Run as Administrator.
Copy and Paste the following command :
netsh wlan set hostednetwork mode=allow ssid=MyNet key=MyPassword
and press [Enter].
- Replace 'MyNet' with the name you'd like to use for your network
- 'MyPassword' with a password that's a little harder to guess.
Once you have done it copy and paste the following lines :
netsh wlan start hostednetwork
and press [Enter] to fire up the virtual adapter.
Now go to Control Panel> Network and Internet> Network and Sharing Centre> Change Adapter Settings, right-click your internet connection and select Properties.
Click the Sharing tab, check Allow other network users to connect, choose your virtual Wi-Fi adaptor.
You are done.
Any nearby Wi-Fi enabled device should see a new network appear with the SSID you defined above. They’ll be able to connect to it using your password, and can then immediately share your internet connection.