To turn your pc/laptop into hotspot :
Type these 2 commands in Command Prompt (each command is followed by pressing the ENTER key)
1/ netsh wlan set hostednetwork mode=allow ssid=NAME key=YOURPASSWORD
2/ netsh wlan start hostednetwork
(NAME is the name of the ad hoc network, you can change it...YOURPASSWORD is your adhoc password, change it
to a more secure one...)
To stop the adhoc network , type this command :
netsh wlan stop hostednetwork
Don't forget to make your Ethernet adapter share Internet to the newly created wi-fi network.