Open Moe1369 opened 4 years ago
Just noticed that the StandardProfile regkey only disables the firewall in private and public scope. It is possible to create a Key named "DomainProfile" under HKLM:\Software\Policies\Microsoft\WindowsFirewall\DomainProfile
Should look something like this:
If (!(Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile")) { New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile" -Force | Out-Null } Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile" -Name "EnableFirewall" -Type DWord -Value 0 }
Good and important observation. Perhaps @Disassembler0 can provide a quick fix for this.
Just noticed that the StandardProfile regkey only disables the firewall in private and public scope. It is possible to create a Key named "DomainProfile" under HKLM:\Software\Policies\Microsoft\WindowsFirewall\DomainProfile
Should look something like this: