I am trying to write a script that scans all the available wireless networks and connects to a specific network (SSID). Does anyone have a sample code written already for this? I cannot install a third party software (managed wifi api) due to some restrictions.
Asked
Active
Viewed 6,255 times
3 Answers
1
Check this related article: Managing wireless network connection in C# . There are some answers, as well as a link to a sample app on codeproject that connects and shows basic wireless info (signal strength, etc) using a UI.
1
You can use netsh
:
netsh wlan connect ssid=YOURSSID name=PROFILENAME
http://www.hanselman.com/blog/HowToConnectToAWirelessWIFINetworkFromTheCommandLineInWindows7.aspx

manojlds
- 290,304
- 63
- 469
- 417
0
- wlanscan by Kris Cieslak

Mark Cidade
- 98,437
- 31
- 224
- 236
-
Thanks Kris. This script only shows all the available SSIDs. How do I connect to a specific SSID? – Nikhil Chordia Aug 03 '11 at 15:03