EnableFirewall

EnableFirewall 會指定是否為 Windows 預先安裝環境啟用 Windows 防火牆, (Windows PE) 。 此設定不適用於 Windows 安裝的 Windows 防火牆設定。

Windows 防火牆是可設定狀態的主機防火牆,會捨棄未經請求的連入流量,為電腦提供惡意使用者或程式的防護層級。 具狀態防火牆是一種防火牆,可追蹤網路連線的狀態, (例如 TCP 資料流程或 UDP 通訊) 傳輸。 為了為連線到任何類型的網路 (的電腦提供更好的保護,例如網際網路、家用網路或組織網路) ,Windows 作業系統預設會在所有網路連線上啟用 Windows 防火牆。

true

啟用 Windows PE 的 Windows 防火牆。 這是預設值。

false

停用 Windows PE 的 Windows 防火牆。

有效的設定階段

windowsPE

父階層

microsoft-windows-setup- | EnableFirewall

套用至

如需此元件支援的 Windows 版本和架構清單,請參閱 microsoft-windows-setup-

XML 範例

下列 XML 輸出會停用 Windows 防火牆。

<EnableFirewall>false</EnableFirewall>

microsoft-windows-setup-