Skip to content

Instantly share code, notes, and snippets.

@madhurjain
Created December 30, 2012 16:40
Show Gist options
  • Save madhurjain/4413711 to your computer and use it in GitHub Desktop.
Save madhurjain/4413711 to your computer and use it in GitHub Desktop.
Create a WiFi HotSpot to share your Internet connection using this tiny batch script. Put each line in a separate .bat file
Create and Start Hotspot
netsh wlan set hostednetwork mode=allow ssid=MyHotspot key=MyPassword
Start Hotspot
netsh wlan start hostednetwork
Stop Hotspot
netsh wlan stop hostednetwork
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment