xml格式的配置文件需要事先从另一台手动配置好的机器上导出。
导出命令是
netsh wlan show profile #查看无线配置文件
netsh wlan export profile name=youRSSID folder=c:\folder\
netsh lan export profile folder=c:\folder\
首先是导出你本机的802.1x的有线无线配置文件xml
————————————————
@ echo off
%1 %2
ver|find "5.">nul&&goto :Admin
mshta vbscript:createobject("shell.application").shellexecute("%~s0","goto :Admin","","runas",1)(window.close)&goto :eof
:Admin
sc config dot3svc start= auto
sc config wlansvc start= auto
net start dot3svc
net start wlanSvc
netsh wlan add profile filename="C:\wifiprofile.xml" user=all
netsh lan add profile filename="C:\wiredprofile.xml"
————————————————