PowerEdge:重新開機後,Windows 防火牆重設為公用

Summary: 重新開機伺服器時,Windows 防火牆設定檔會設為「公開」,而非「已 domain.com 的網域驗證」(即 )。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms

在將 Windows 防火牆設定檔手動設定為 'DomainAuthenticated' 使用 Set-NetConnectionProfile 或者 Windows 防火牆已完全關閉。

網路連線在網路介面卡 (NIC) 的名稱下 列出網路 X,而不是 domain.com

Cause

網路位置感知服務會在 Active Directory 網域可用之前啟動。

Resolution

對於域控制器,請將 網路位置感知 服務設置為 「延遲啟動 」,併為域名系統 (DNS) 服務添加依賴項。

注意:若要使用 PowerShell 執行下列命令,您必須使用 Start-Process cmdlet。

以系統管理員身分從 CMD 執行下列命令:
sc config NlaSvc start= delayed-auto 
sc config NlaSvc depend= DNS

對於 「成員伺服器」,請將「網路位置感知」服務設置為 「延遲啟動 」(不要修改其依賴項)。

以系統管理員身分從 CMD 執行下列命令:

sc config NlaSvc start= delayed-auto
範例:
Start-Process sc.exe -ArgumentList "config NlaSvc start= delayed-auto"
Start-Process sc.exe -ArgumentList "sc config NlaSvc depend= DNS" #DC Only

Affected Products

Microsoft Windows Server 2016, Microsoft Windows Server 2019, Microsoft Windows Server 2022, Microsoft Windows 2012 Server, Microsoft Windows 2012 Server R2, PowerEdge R440, PowerEdge R450, PowerEdge R540, PowerEdge R550, PowerEdge R570 , PowerEdge R640, PowerEdge R6415, PowerEdge R650, PowerEdge R650xs, PowerEdge R6515, PowerEdge R6525, PowerEdge R660, PowerEdge R660xs, PowerEdge R6615, PowerEdge R6625, PowerEdge R670, PowerEdge R740, PowerEdge R740XD, PowerEdge R740XD2, PowerEdge R7415, PowerEdge R7425, PowerEdge R750, PowerEdge R750XA, PowerEdge R750xs, PowerEdge R7515, PowerEdge R7525, PowerEdge R760, PowerEdge R760XA, PowerEdge R760xd2, PowerEdge R760xs, PowerEdge R7615, PowerEdge R7625, PowerEdge R770, PowerEdge R7715, PowerEdge R7725, PowerEdge R840, PowerEdge R860, PowerEdge R940, PowerEdge R940xa, PowerEdge R960, PowerEdge T340, PowerEdge T350, PowerEdge T360, PowerEdge T440, PowerEdge T550, PowerEdge T560, PowerEdge T640 ...
Article Properties
Article Number: 000207835
Article Type: Solution
Last Modified: 12 Jun 2025
Version:  4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.