Closed jaisato closed 5 years ago
What do you mean if the firewall is disabled? Windows firewall is considered as disabled if it is disabled for all and every profile.
Not sure what will be the result if there is a third party firewall installed or if the "mpssvc" (Windows Defender Firewall) service is stopped or disabled. You might want to try that and see what are the outputs.
Ok, thanks for your support. I'll check the outputs for such conditions.
Version 2 (currently alpha) of this library now allows you to check to see if windows firewall service is running and also retrieve information about the third party firewall software installed and what type of rules they are registered to manage.
Version 2 (currently alpha) of this library now allows you to check to see if windows firewall service is running and also retrieve information about the third party firewall software installed and what type of rules they are registered to manage.
I'm trying with V1 and V2 to check if the firewall is activated, but I don't get good results. Check this screenshot :
As my screenshot, I have everything disabled, but with the API, this is what I get :
How can I check if the firewall is enabled or disabled?
Enable
indicates if the firewall is enabled and filtering traffic
IsActive
indicates if the firewall profile is active; not necessarily filtering traffic tho. This means there is at least one connection using this profile.
Therefore in your example, for both Public and Private profiles, the state is correctly reported as disabled. However, this is not the case for the Domain profile in your example even tho you had manually disabled that as well.
The reason why Domin firewall is still enabled and active is (as correctly pointed out by the message on the top of the page) due to a Group Policy Object; either local, from Active Directory or from Organizational Units.
Hi,
I can check if firewall profiles are enabled. I would like to check if firewall is enabled too. Is that possible? How can I check it?
Thanks in advance!