- open cmd as administrator.
- type "netsh wlan set hostednetwork mode=allow ssid=NAME key=PASSWORD" without the quote. replace the NAME & PASSWORD with your wifi name and password.
- type "netsh wlan start hostednetwork" without the quote. (write "stop" instead of "start" if u want to close the hotspot)
- goto "Open Network and Sharing Centre ->Change Adapter Settings" and change properties of your connection (allow sharing, and put a name).
Note: if u don't want to do it every time, make a batch file using the command of 2nd and 3rd step.