Skip to content

Instantly share code, notes, and snippets.

@sergejusb
Created January 16, 2014 21:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sergejusb/8463529 to your computer and use it in GitHub Desktop.
Save sergejusb/8463529 to your computer and use it in GitHub Desktop.
share internet as wi-fi spot
@echo off
set key=%1
set ssid=%2
if (%key%) == () set key=1234567890
if (%ssid%) == () set ssid=shared
echo Usage: share_internet.bat [network password] [network name]
echo Using: share_internet.bat %key% %ssid%
echo Connect to: %ssid%
echo Use password: %key%
netsh wlan set hostednetwork mode=allow ssid=%ssid% key=%key%
netsh wlan start hostednetwork
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment