netsh wlan set hostednetwork mode=allow ssid=shang key=mengshang

netsh wlan start hostednetwork

利用上面两条命令即可,当然要设置将有线的网络适配器共享给无线网络适配器