参考网页:
1.启动power shell
2.输入命令: Set-NetConnectionProfile -NetworkCategory Public
Set-NetConnectionProfile -NetworkCategory Private
即可设置当前网络链接为公有/私有
来源: http://www.bubuko.com/infodetail-1962748.html