变更 Windows Server网络类别(共用、专用)

《变更 Windows Server网络类别(共用、专用)》

《变更 Windows Server网络类别(共用、专用)》

若要快速切换为网络类型的话,使用命令行操作,

1、利用 Windows PowerShell 来做切换了。

我们点选一下工作列上的 Windows PowerShell 图示,这时候就会开启 Windows PowerShell 命令提示字元。

接下来我们键入指令【Get-NetConnectionProfile】并按一下键盘上的【Enter】,此时我们可以看到目前的网路状态为【Public】。

《变更 Windows Server网络类别(共用、专用)》

下面我们给设置成【专用网络】,这里要注意InterfaceIndex 编号

set-netconnectionprofile -InterfaceIndex 30 -NetworkCategory Private

如果设置成【公用网络】

set-netconnectionprofile -InterfaceIndex 30 -NetworkCategory Public

《变更 Windows Server网络类别(共用、专用)》

    原文作者:qq_35960933
    原文地址: https://blog.csdn.net/qq_35960933/article/details/121245041
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞