Forum Discussion
Firewall Off despite policy being enabled
- Nov 11, 2024
This can happen if you have a GPO policy for Defender FW also assigned as it will take precedence over Intune against the Defender CSP.
This can happen if you have a GPO policy for Defender FW also assigned as it will take precedence over Intune against the Defender CSP.
- AhmedSHMKNov 11, 2024Brass Contributor
Well, while Gpresult HTML does not show anything related to Firewall, I could locate the following key:
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile called EnableFirewall and the value is 0x00000000
I have since tried to use the command below to enable it to test but it is still showing disabled:
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile" /v EnableFirewall /t REG_DWORD /d 1 /f Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile" -Name "EnableFirewall" -Value 1
- rahuljindalNov 11, 2024Bronze Contributor
Did you run gpresult for user or with computer as scope?
- AhmedSHMKNov 12, 2024Brass Contributor
Well both really.
When enabled locally i.e. from windows firewall in control panel, It works. But for some reason Intune policies do not seem to enable it.
Not sure if something in the environment itself etc... could be blocking it.