若要快速切换为网络类型的话,使用命令行操作,
1、利用 Windows PowerShell 来做切换了。
我们点选一下工作列上的 Windows PowerShell 图示,这时候就会开启 Windows PowerShell 命令提示字元。
接下来我们键入指令【Get-NetConnectionProfile】并按一下键盘上的【Enter】,此时我们可以看到目前的网路状态为【Public】。
下面我们给设置成【专用网络】,这里要注意InterfaceIndex 编号
set-netconnectionprofile -InterfaceIndex 30 -NetworkCategory Private
如果设置成【公用网络】
set-netconnectionprofile -InterfaceIndex 30 -NetworkCategory Public