Skip to content

Instantly share code, notes, and snippets.

@luochen1990
Created April 8, 2015 02:50
Show Gist options
  • Save luochen1990/6d8ef51b688e5d9e4e06 to your computer and use it in GitHub Desktop.
Save luochen1990/6d8ef51b688e5d9e4e06 to your computer and use it in GitHub Desktop.
Windows上创建WIFI热点 共享网络连接
netsh wlan show drivers
netsh wlan set hostednetwork mode=allow ssid=SharedAP key=12345678
netsh wlan start hostednetwork
@echo 创建虚拟网卡成功后,需要共享当前的Internet连接:
@echo -- 打开[网络和共享中心]
@echo -- 点击[更改适配器设置]
@echo -- 右键{你现在上网用的连接,如'本地连接'}
@echo -- 点击[属性]
@echo -- 点击[共享]
@echo -- 勾选[允许其他网络...]
@echo -- 选择{刚才创建的虚拟连接,如'无线网络连接2'}
@echo -- 点击[确定]
@echo -- 关闭[网络和共享中心]
@echo -- 完成
@pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment