I use below commands to configure my windows 10 as a wifi hotspot
netsh wlan set hostednetwork mode=allow ssid=AdHoc key=password
netsh wlan start hostednetwork
source: http://lifehacker.com/turn-your-windows-10-computer-into-a-wi-fi-hotspot-1724762931
This works fine, but some times ( I don't know when or how, but may be if I don't use it) the hotspot is not working and I should rerun above commands.
Any suggestion how can I fix it ?!