netsh wlan set hostednetwork mode=allow ssid=WifiSpot key=funwithtricks
netsh wlan start hostednetwork
- Change the SSID value colored with red with the name of your hotspot.
- Change the key value colored with blue with the security code required to authenticate users.
2. Save this file as StartWifi.bat. Make sure you have given the extension as .bat.
3. Create another notepad file and paste the below code into it.
netsh wlan stop hostednetwork4. Save this file as StopWifi.bat. This file is to stop our Wi-Fi Hotspot.
So from now when ever you want to start the Wi-Fi Hotspot, simply double click the StarWifi.bat file and your Wi-Fi hotspot will start to broadcast. As soon as you are done you can double click the StopWifi.bat file and your broadcast will be stopped.