Win10-Initial-Setup-Script icon indicating copy to clipboard operation
Win10-Initial-Setup-Script copied to clipboard

Disable Domain Firewall

Open Moe1369 opened this issue 5 years ago • 1 comments

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
}

Moe1369 avatar Aug 29 '20 12:08 Moe1369

Good and important observation. Perhaps @Disassembler0 can provide a quick fix for this.

E3V3A avatar Sep 30 '20 10:09 E3V3A