5

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.

3 Answers3

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.

Community
  • 1
  • 1
Egor
  • 1,597
  • 10
  • 23
1

You can use netsh:

netsh wlan connect ssid=YOURSSID name=PROFILENAME

http://www.hanselman.com/blog/HowToConnectToAWirelessWIFINetworkFromTheCommandLineInWindows7.aspx

manojlds
  • 275,671
  • 58
  • 453
  • 409
0
Mark Cidade
  • 96,194
  • 31
  • 221
  • 232