Windows Defender Firewall: proteggi tutte le connessioni di rete: valore del Registro di sistema EnableFirewall (StandardProfile)ComputerHKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile
- ID criterio
- WF_EnableFirewall_Name_2
- Ambito
- Configurazione computer
- Supportato in
- Almeno Windows XP Professional con SP2
- Origine
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versione 1.0)
- Categoria
- Rete › Connessioni di rete › Windows Defender Firewall › Profilo standard
Registro
EnableFirewall
REG_DWORDComputerHKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile Chiave corrente
- Valore abilitato
- 1
- Valore disabilitato
- 0
Applica con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile] ; Opzioni (usarne solo una) ; Abilitato "EnableFirewall"=dword:00000001 ; Disabilitato "EnableFirewall"=dword:00000000
CMD
:: Opzioni (usarne solo una) :: Abilitato reg add "HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile" /v "EnableFirewall" /t REG_DWORD /d 1 /f :: Disabilitato reg add "HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile" /v "EnableFirewall" /t REG_DWORD /d 0 /f
PowerShell
# Comune: crea la chiave New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile' -Force | Out-Null # Opzioni (usarne solo una) # Abilitato New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile' -Name 'EnableFirewall' -PropertyType DWord -Value 1 -Force | Out-Null # Disabilitato New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile' -Name 'EnableFirewall' -PropertyType DWord -Value 0 -Force | Out-Null