Skip to content

Instantly share code, notes, and snippets.

@taesiri
Created December 11, 2019 20:09
Show Gist options
  • Save taesiri/87015d5bae3853cc3c373ab185c83f6a to your computer and use it in GitHub Desktop.
Save taesiri/87015d5bae3853cc3c373ab185c83f6a to your computer and use it in GitHub Desktop.
Windows Hotspot Creator
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