I need to add new rules to windows firewall but any change I do is not saved at all. If I disable the firewall, a window on bottom right corner says firewall is off but when I open firewall settings again, its turned on. And this goes for any setting I try to change. All rules I create will magically disappear.

I even tried to disable it using command prompt(administrator):
C:\WINDOWS\system32>netsh advfirewall set allprofiles state off
It says "ok", but actually the firewall turns right back on.

OS: Windows 10
I uninstalled my Avast antivirus temporarily to see if this program was controlling it, still same situation.

Please help