@echo off
:: 1. 配置并开启承载网络（热点名称DASH，密码12345678）
netsh wlan set hostednetwork mode=allow ssid=DASH key=12345678
netsh wlan start hostednetwork

:: 2. 调用系统设置接口强制开启移动热点
powershell -NoProfile -ExecutionPolicy Bypass -Command "$tetheringManager = [Windows.Networking.NetworkOperators.NetworkOperatorTetheringManager,Windows.Networking.NetworkOperators,ContentType=WindowsRuntime]::CreateFromConnectionProfile([Windows.Networking.Connectivity.NetworkInformation,Windows.Networking.Connectivity,ContentType=WindowsRuntime]::GetInternetConnectionProfile()); $tetheringManager.StartTetheringAsync() | Out-Null"

pause
