开发者

Using C# or Powershell to scan all available wireless networks and connect to a specific SSID

I am trying to write 开发者_StackOverflow中文版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.


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.


You can use netsh:

netsh wlan connect ssid=YOURSSID name=PROFILENAME

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


  • wlanscan by Kris Cieslak
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜