Created
March 19, 2014 18:59
-
-
Save taesiri/9648811 to your computer and use it in GitHub Desktop.
Ad-hoc Creator
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
write-host("Ad-Hoc Creator") | |
write-host("Please enter an SSID") -foreground "green" | |
$network_name = Read-Host | |
write-host("Please enter a Password") -foreground "green" | |
$network_pass = Read-Host | |
write-host "Stopping current hosted network ..." -foreground "yellow" | |
netsh wlan stop hostednetwork | |
write-host "Creating new network ..."-foreground "green" | |
netsh wlan set hostednetwork mode=allow ssid=$network_name key=$network_pass | |
write-host("Starting network ...") -foreground "green" | |
netsh wlan start hostednetwork |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment