【转】Windows自动连接、断开无线网络

前提是先连接到指定的WiFi网络上。

然后通过

netsh wlan export profile

将网络配置文件导出,然后使用如下命令添加配置文件到指定的网络接口上,再执行连接命令即可。

netsh wlan delete profile *
netsh wlan add profile filename="wf2000.xml" interface="Wireless Network Connection"
netsh wlan connect name=Profile
netsh wlan disconnect
pause

原文出处:http://blog.csdn.net/tody_guo/article/details/28610813

原文地址:https://www.cnblogs.com/hester/p/7597906.html