1.設置Hostednetwork
@echo off
title Enabled Hostednetwork
netsh wlan set hostednetwork mode=allow ssid=test123 key=abcdefg1
echo Please set your ICS then run the hot-start.bat
pause
2.設置無線網絡連接的internet 連接共享
3. 開啟Hostednetwork
@echo off
title Start Hostednetwork
netsh wlan start hostednetwork
pause
開啟後手機或別的電腦設備就能連接新虛擬出來的WiFi熱點了
下面的步驟4和5為輔助使用
4.停止Hostednetwork
@echo off
title Stop Hostednetwork
netsh wlan stop hostednetwork
pause
5.取消hostednetwork
@echo off
title Disabled Hostednetwork
netsh wlan set hostednetwork mode=disallow
pause