Below are the steps:
-open command using administrator.
-type netsh wlan show drivers (to check whether the computer supports the Hosted network or not)
-if yes than type netsh wlan set hostednetwork mode=allow ssid=yourname key=yourpassword
-after that type netsh wlan start hostednetwork
- Open Control Panel and go to Network and Sharing Center.
- Click Change Adapter Settings.
- Right click your Internet connection and select Properties.
- Click the Sharing tab.
- Check the box that says Allow other network users to connect.
- Choose your virtual Wi-Fi adapter and click OK.