Skip to content

Instantly share code, notes, and snippets.

@sony-mathew
Last active February 20, 2018 17:45
Show Gist options
  • Save sony-mathew/b4ac127d1f413ed0730ac1e7839b9366 to your computer and use it in GitHub Desktop.
Save sony-mathew/b4ac127d1f413ed0730ac1e7839b9366 to your computer and use it in GitHub Desktop.
Create an adhoc network in windows 8 and make it running in a single click
:: Just run this wifi.bat as administrator to create an adhoc network in windows 8.
:: By default the name of the network will be named as "adhocnet".
:: If you want to change that right click on wifi-adhoc.bat and select edit.
:: In the first line there is a part ssid=adhocnet.
:: Replace the "adhocnet" with your desired name.
:: if your name contains spaces please put it in double quotes.
netsh wlan set hostednetwork mode=allow ssid=adhocnet key=password1
netsh wlan start hostednetwork
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment