命令行开启WiFi方法:
开启WiFi.bat
netsh wlan set hostednetwork mode=allow
netsh wlan set hostednetwork ssid=ssid key=rootroot
netsh wlan start hostednetwork
查看状态,及停止WiFi
netsh wlan show hostednetwork
netsh wlan stop hostednetwork
问题总结
1:不出现Microsoft Virtual WiFi Miniport Adapter,或者microsoft virtual wifi miniport adapter有感叹号!
解决方案:先卸载无线网卡的驱动,再执行上面的开启虚拟网卡的命令,就可以了。
2.The hosted network couldn't be started.A device attached to the system is not functioning
解决方案:看是否打开了无线的开关。
3.The hosted network couldn't be started.The group or resource is not in the correct state to perform the requested operation.
解决方案:查看网卡是否支持承载网络: netsh wlan start hostednetwork 是否是 Hosted network supported : Yes 找最新驱动解决。