Using C# or Powershell to scan all available wirel

2019-05-01 16:47发布

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条回答
Explosion°爆炸
2楼-- · 2019-05-01 16:57

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.

查看更多
迷人小祖宗
3楼-- · 2019-05-01 17:00

You can use netsh:

netsh wlan connect ssid=YOURSSID name=PROFILENAME

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

查看更多
神经病院院长
4楼-- · 2019-05-01 17:00
查看更多
登录 后发表回答