Windows Server 2012 安裝某些微軟patch後,使用中的網路連線設定的網路類別屬性會被修改,

Private被異動為Public,造成防火牆規則被異動而無法連線,

故須改正為原本設定,但此版本並無介面可設定,

請依下列步驟執行修改網路類別:

1.開啟PowerShell
2.找出要修改網卡的InterfaceIndex號碼
    執行Get-NetConnectionProfile
        假設上方指令執行結果:

        Windows PowerShell著作權 (C) 2014 Microsoft Corporation. 著作權所有,並保留一切權利。

PS C:\Users\Administrator> Get-NetConnectionProfile


Name             : 網路  2
InterfaceAlias   : vEthernet (Intel(R) Ethernet Connection (2) I219-LM - Virtual Switch)
InterfaceIndex   : 16
NetworkCategory  : Public
IPv4Connectivity : Internet
IPv6Connectivity : LocalNetwork

3.修改網卡InterfaceIndex   : 16網路類別為Private
Set-NetConnectionProfile  -InterfaceIndex 16 -NetworkCategory Private

4.檢視防火牆規則是否能存在,不存在則補上

5.建議重開機,使網站相關服務抓取新設定

arrow
arrow
    文章標籤
    Windows
    全站熱搜

    K 發表在 痞客邦 留言(0) 人氣()