Last active
May 30, 2016 07:01
-
-
Save kas-cor/4cc9362468388f67e4f2 to your computer and use it in GitHub Desktop.
Virtual AP Wi-Fi Windows 7, 8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
echo 1. Install & Start | |
echo 2. Start | |
echo 3. Status | |
echo 4. Stop | |
echo 5. Uninstall | |
set /P choice="Choice [3]: " | |
if "%choice%"=="1" GOTO install | |
if "%choice%"=="2" GOTO start | |
if "%choice%"=="4" GOTO stop | |
if "%choice%"=="5" GOTO uninstall | |
:status | |
netsh wlan show settings | |
pause | |
netsh wlan show hostednetwork setting=security | |
GOTO exit | |
:install | |
set /P ssid="Input SSID: " | |
set /P pass="Input PASSWORD: " | |
netsh wlan set hostednetwork mode=allow ssid="%ssid%" key="%pass%" keyUsage=persistent | |
:start | |
netsh wlan start hostednetwork | |
GOTO exit | |
:stop | |
netsh wlan stop hostednetwork | |
GOTO exit | |
:uninstall | |
netsh wlan set hostednetwork mode=disallow | |
:exit | |
pause | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment