Zapora Windows Defender: chroń wszystkie połączenia sieciowe: wartość rejestru EnableFirewall (DomainProfile)KomputerHKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile
- Identyfikator zasady
- WF_EnableFirewall_Name_1
- Zakres
- Konfiguracja komputera
- Obsługiwane w systemach
- System Windows XP Professional z dodatkiem SP2 lub nowszy
- Źródło
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (wersja 1.0)
- Kategoria
- Sieć › Połączenia sieciowe › Zapora Windows Defender › Profil domeny
Rejestr
EnableFirewall
REG_DWORDKomputer- Wartość włączona
- 1
- Wartość wyłączona
- 0
Zastosuj przez .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile] ; Opcje (użyj tylko jednej) ; Włączone "EnableFirewall"=dword:00000001 ; Wyłączone "EnableFirewall"=dword:00000000
CMD
:: Opcje (użyj tylko jednej) :: Włączone reg add "HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile" /v "EnableFirewall" /t REG_DWORD /d 1 /f :: Wyłączone reg add "HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile" /v "EnableFirewall" /t REG_DWORD /d 0 /f
PowerShell
# Wspólne: utwórz klucz New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile' -Force | Out-Null # Opcje (użyj tylko jednej) # Włączone New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile' -Name 'EnableFirewall' -PropertyType DWord -Value 1 -Force | Out-Null # Wyłączone New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile' -Name 'EnableFirewall' -PropertyType DWord -Value 0 -Force | Out-Null